Better reporting of detached git state in --version and --show-config