fixing bug when cleaning up old nagios config