only use git commit date for SOURCE_DATE_EPOCH if the template is under version control. Fall back to templates mtime if it's not managed by git.
only use git commit date for SOURCE_DATE_EPOCH if the template is under version control. Fall back to templates mtime if it's not managed by git.