Fixed issue where multiple compiled modules could end up being created for the same module.