Fixed bug in build_and_run function.  Made ScriptVersion derived from commit count of CI repo.