Add Riak Test shell script error handling

Removes this fun issue:

```
cd /dir/does/not/exist
git reset --hard HEAD
```