use entire module path when normalizing module names
fix messy whitespace, oops
Merge pull request #19 from Rich-Harris/master

Resubmitting #18 to dev branch