GIT-VERSION-GEN: detect dirty tree and mark the version accordingly.