Minor Fixes

Here are a few fixes I had to make to get this module to work with Puppet 3.1.
I hope you'll apply these changes to help the next guy.