find_config_file: simplify
Add optional $basedir argument to sub path
Add the path function in templates
Exit in case of error parsing command line options
git_commit_sign_id: rewrite using capture_exec
Fix git command to get commit timestamp

Add ^{commit} after the git hash to make sure we show only the commit,
in case of tag.