src: which: give error when path is not defined