Use `sub` to replace path information
Use `sub` to replace path information

There is no need to `gsub` when `path` will only contain one
occurrence of the string aimed to be removed.

luislavena/gem-compiler