Fixed checking typeof package or module causing isPackage / isModule to be false with DMD head.
Merge pull request #2 from Kapps/fixIPM

Fixed checking typeof package or module causing isPackage / isModule to be false with DMD head.