Add options to change the generated file extension and prevent the expansion of subpaths for dest

* Add the ```generatedExtension``` option to change the output file extensions.

* Add the ```expandDirectories``` option to allow writing directly to the 'dest' directory without expanding the subpaths