Write module files into private directory.