remove old rc extension from detection files