bugfix for which, patch magic
directory ".type" ordering is now significant