What about a fallback to reading from `.git` if `exec()` isn't available?