Updated build script to support Jenkins