Don't attempt to insert templates on readonly files