Fixed the code to over write puppet code

Earlier it was copy the directory to /var/puppet
and was assuming that /var/puppet doesnt already exists.
This will be a problem on subseqent deployments
where /var/puppet can exists. Fixed this.