Updating the packer configuration to add a version number to the created image.
Ignoring the build and packages directories.
Executing packer build script after the prepare steps, not before.
Getting the version number and copying the script and installer files to a setup directory for processing during the packer build.