Fixing use of array_shift().
Setting working directory path for Process.

I am trying to figure out why Git is not behaving as expected on Travis-CI.