Update GitCommands.php

Used getPath() instead of building path by hand