Fixes paths for cross platform (this method missing on mac though)