better command finding in bash