Only use os.path.join for local files