fixing logical flow to create .box before deleting the vm files

The previous logic deleted the VM before packaging the .box 

This no longer happens.

Also, corrected the logical flow to set $NAME env_var in time to create the dynamic_vars.sh file. Before this, we were setting a HDD and HDD_SWAP file locations that failed.