Changed git package and fixed spaces detection