Update build.sh

updated moab path in test configure
Update build.sh

Sanitise variables.