Fix issue #40 standardize local var definitions in core mbs dir

modified:   core/mbs-lib.sh