Fixed bug in makeRelativeFilePath() - targetPath wasn't normalized

`targetPath` has to be normalized before using it within `makeRelativeFilePath()`. Otherwise function gives invalid result.