Initialize all variables.
Fixing the script to work with puppet 3.3.1
Remove the files after the run has completed