made it not change working directories when running git commands unless it needs to