Added rules for archiving config files, and cleaning up the directory when done.