add git support to pwd

no more termininfo dependency