Fixes bug if remote path doesn't exist