Make sure /etc/apache2 directory exists before writing config file.