Fix detection of git commit during build from tarball Upstream-commit: 6472a6d9e56bcbd32642d69bf91d3a2831b09e9c Component: engine