checks .git folder exists