Check that .git exists.

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>