Check if git index actually exists

We should check if ../.git/index actually exists before relying on it. In case of using ipxe as a git submodule that's not true, and we shouldn't disallow bulding ipxe.

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>