fixed issue with using which on an aliased command