Fix ordering of options changing

The order of the options kept changing on each puppet run for me. Adding the sort makes the order consistent on each puppet run.
Remove warnings when storeconfigs is not being used

Added a defined type to collect exported resources, this is to prevent
parser warnings when storeconfigs is not being used (i.e when using
simple puppet apply with no PuppetDB)
Merge pull request #69 from lboynton/patch-1

Fix ordering of options changing
Merge pull request #81 from yasn77/master

Remove warnings when storeconfigs is not being used
Fix the mkdir for moduledir
Add chroot ownership
Merge pull request #88 from hunner/fix_mkdir

Fix the mkdir for moduledir
Merge pull request #87 from hunner/fix_perms

Add chroot ownership