Fixed an issue where modules using define were not being handled correctly.