Update Compiler.hx

https://github.com/HaxeFoundation/haxe/issues/2910
give priority to module against package because FileSystem checking is not ase sensitive and create isues when a module has same name then the package