backward compatible file-remote-p