fixes #2770 - create modules/ subdir for each environment