Fixed sometimes broken git aware shell.