Support INTERMEDIATE_BUILD
 - useful for build/deploy in momentics
Shell Fixes
 - use . instead of source
    . is synonymous with source in bash, but not in POSIX sh, so you should use .
    if your script is run by /bin/sh. Note that bash claims to run like POSIX sh
    when called as /bin/sh, but accepts source without complaint.
 - exec instead of runing for better job control
remove another bash-specific use