Clean rules file