Minor fixes to bash code
Adds 'set -e' all around
Makes status() return arg as unicode