build: Check if .git exists at all, rather than just as a dir

We were failing to do a proper submodule init/update round during our continuous
package builds, which was causing whole build failures.

Change-Id: I42cd29321c1d0ea953abd92c47cec3839d1b43e9
1 file changed