Fixes file path with ' on macos issue