Allow dashes in build paths, use replacePath for build path as well as source paths

I needed to use a version number in the filename of the built file, it seemed sensible to use the current replacePath option.