reverted to use command -v instead of hash

according to analysis made with @gdrooid