fix module extension for directive
0.3.5