Filter the Modulefile to remove optional dependencies

Hi,

this should filter the dependencies when building the module tgz for upload.

Please let me know how it worked out!