Improved shell script to start packer builds from a jenkins job