Fix writeModules _.each using fat arrow

Some small fix