bug in puppet scripts with directory path

I was installing this on ubuntu and there was a bug in the puppet script. These changes fixed it for me on my machine. I don't know how to test this other than to say that it works on my local machine so please test it on your machine before merging in.