corrections to buildBrunchConfig.py
another bug with buildBrunchConfig.py