Modification of gitExec function so it can work on Linux

Details suppl.:
Bug found by Bruno Adele

Signed-off-by: Christian Tremblay, ing. <christian.tremblay@servisys.com>