Support out-of-git-dir build (#33)