Set write permission for copied template files