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