Use set -e for exit instead of || exit
Simplify version extraction

* cat | grep | awk OH MY!
* In all seriousness, this was only tested on Linux with bash, zsh, &
  dash.
Merge pull request #482 from losinggeneration/bashify-dist.sh

Bashify dist.sh