Use "set -e" in bash scripts
Python: disable calls to mercurial

Fixes #21