Make `puppet_file_contains` compatible with Puppet 3

By manually searching the module path for the given file instead of using the Puppet API, which cannot be used this way in Puppet 3.