fix case sensitivity bug in module name check.