Adds logic to create the monit config directory before writing files to it