Alter git config on dir change.