Fixes for OSX, prefer host over remote_path.