Doing manipulations on the path like this breaks encapsulation. The current behavior assumes that the basedir provides the location to install the module, which should be sufficient. Handling the path manipulation comes from the Puppetfile and should be there.