Check if dir has git or not
added timeout to ssh connection