Fixed bug in installModule not adhering to the overwrite flag of the module