fix nerdtree on ubuntu and prompt on git 1.7.x