Added parse comand line for path to git folder
Converted defines to parameters
One more fix