move the nginx default config cleanup earlier in the run