Change directories right before the command is executed, instead of when GitCommand's