Updated build script to work with jenkins