add support for excluding module path extensions from generated modules

@wpoely86: please review
no, since `use` loops over the provided list a well (see https://github.com/hpcugent/easybuild-framework/blob/master/easybuild/tools/module_generator.py#L185), and `'\n'.join([])` returns and empty string