Support builds outside the git dir.

Oops.