fixed bug in does_exist() of inference/path.pt reported by dksr.