fix detecting module name for full path @import

User could specify an @import directly to the file (bypassing the style
field lookup). For this, we want to use the module name the user
specified for prefixing.
update deps to newer versions
switch to mocha for testing