(#21272) Refactor created directory from 'puppet module generate'

Currently the created directory is 'username-modulename'.
This patch changes this to 'modulename' because that's mostly used.

This is a new PR since #1711 broke the tests
Hopefully with this one i managed to fix the tests as well.
Fix remaning tests
Merge pull request #3002 from electrical/rename_pmt_generate_dir

(#21272) Refactor created directory from 'puppet module generate'