FF: made the git-sha checking code more robust on win32

Reverted to using @jeremygray's code for this. The Popen code doesn't
look quite as neat as using check_output() but it seems not to fail,
which is preferable! ;-)