change path substitutions to not assume Unix FS