Use command -v instead of which for command checking

Closes #11