Are you missing a rename step here?

Typically a published tarball will contain a directory such as `puppetlabs-stdlib-1.2.3/`, which needs renaming to `stdlib` (the name of the module, sans author and version).