fix normalization of remote_path