pkg-which: fixes