fix regression that seg faults if path not found