Fix module to use with Librarian Puppet in newer versions of Puppet

This PR fixes three unrelated issues. If you'd like I could split them in three different PRs.