Fix `which` when given absolute paths