Fix path issues when trying to find local files to upload to the server