added fix to make sure module regeneration doesn't happen in a local environment