check if file path given is local