Fix writeModules _.each using fat arrow