add "hash -r" and use `command -v` instead of `which`
fixes #22
Merge pull request #25 from wilmoore/rehash-after-switch

add "hash -r" and use `command -v` instead of `which`