Insert short git ref instead of "HEAD" in detached head state
Add support for other VCSs