whitespace cleanup
Move set -e down so that 'which' may exit with a non-zero status
Make the test verifying we're in the repository directory stricter