fixes reg029 to not use set -u (which does not exist on macosx)
Merge pull request #750 from hannesm/fix-reg029

fixes reg029 to not use set -u (which does not exist on macosx)