Fix module build when module already exists