Added check to make sure that file exists before trying to jump to it.