Handle case where building from git checkout (fixes #20).