replace stale templated files with backup if possible