Fix git checkout,diff,reset,rm in deleted directories, if pwd is in git dir