fix remote_path handling on different os types.