Don't attempt to change directory to file if file is URI