add support for excluding module path extensions from generated modules

@wpoely86: please review