Fix FindDepotToolsInPath not working in some cases
Fix FindDepotToolsInPath not working in some cases

When depot tools' path in PATH is like '/home/project/depot_tools/',
FindDepotToolsInPath will not detect it because os.path.basename will
get empty string.

Fix this by getting its parent if its basename is empty.

BUG=https://github.com/otcshare/cameo/issues/29

myroot/crosswalk,tomatell/crosswalk,jondwillis/crosswalk,leonhsl/crosswalk,chuan9/crosswalk,hgl888/crosswalk,darktears/crosswalk,XiaosongWei/crosswalk,bestwpw/crosswalk,ZhengXinCN/crosswalk,myroot/crosswalk,minggangw/crosswalk,TheDirtyCalvinist/spacewalk,pk-sam/crosswalk,shaochangbin/crosswalk,weiyirong/crosswalk-1,pk-sam/crosswalk,darktears/crosswalk,PeterWangIntel/crosswalk,baleboy/crosswalk,pk-sam/crosswalk,axinging/crosswalk,siovene/crosswalk,weiyirong/crosswalk-1,mrunalk/crosswalk,marcuspridham/crosswalk,Bysmyyr/crosswalk,axinging/crosswalk,siovene/crosswalk,darktears/crosswalk,Bysmyyr/crosswalk,dreamsxin/crosswalk,pozdnyakov/crosswalk,zeropool/crosswalk,tedshroyer/crosswalk,hgl888/crosswalk,darktears/crosswalk,tomatell/crosswalk,hgl888/crosswalk-efl,rakuco/crosswalk,weiyirong/crosswalk-1,weiyirong/crosswalk-1,zliang7/crosswalk,baleboy/crosswalk,Shouqun/crosswalk,DonnaWuDongxia/crosswalk,seanlong/crosswalk,pozdnyakov/crosswalk,DonnaWuDongxia/crosswalk,hgl888/crosswalk-efl,zeropool/crosswalk,stonegithubs/crosswalk,tomatell/crosswalk,mrunalk/crosswalk,stonegithubs/crosswalk,RafuCater/crosswalk,Shouqun/crosswalk,axinging/crosswalk,amaniak/crosswalk,chuan9/crosswalk,seanlong/crosswalk,rakuco/crosswalk,wuhengzhi/crosswalk,zliang7/crosswalk,hgl888/crosswalk-efl,PeterWangIntel/crosswalk,baleboy/crosswalk,XiaosongWei/crosswalk,hgl888/crosswalk-efl,marcuspridham/crosswalk,chinakids/crosswalk,huningxin/crosswalk,RafuCater/crosswalk,leonhsl/crosswalk,crosswalk-project/crosswalk,zliang7/crosswalk,ZhengXinCN/crosswalk,crosswalk-project/crosswalk-efl,myroot/crosswalk,XiaosongWei/crosswalk,darktears/crosswalk,alex-zhang/crosswalk,alex-zhang/crosswalk,Pluto-tv/crosswalk,pozdnyakov/crosswalk,mrunalk/crosswalk,rakuco/crosswalk,xzhan96/crosswalk,crosswalk-project/crosswalk,chuan9/crosswalk,mrunalk/crosswalk,jondong/crosswalk,PeterWangIntel/crosswalk,tedshroyer/crosswalk,leonhsl/crosswalk,Shouqun/crosswalk,kurli/crosswalk,lincsoon/crosswalk,weiyirong/crosswalk-1,bestwpw/crosswalk,baleboy/crosswalk,jpike88/crosswalk,rakuco/crosswalk,seanlong/crosswalk,XiaosongWei/crosswalk,hgl888/crosswalk-efl,amaniak/crosswalk,leonhsl/crosswalk,XiaosongWei/crosswalk,minggangw/crosswalk,jpike88/crosswalk,jondwillis/crosswalk,amaniak/crosswalk,jpike88/crosswalk,fujunwei/crosswalk,xzhan96/crosswalk,tedshroyer/crosswalk,Bysmyyr/crosswalk,Shouqun/crosswalk,weiyirong/crosswalk-1,pk-sam/crosswalk,zliang7/crosswalk,hgl888/crosswalk,hgl888/crosswalk,jondwillis/crosswalk,zeropool/crosswalk,jondwillis/crosswalk,chuan9/crosswalk,tedshroyer/crosswalk,fujunwei/crosswalk,rakuco/crosswalk,RafuCater/crosswalk,DonnaWuDongxia/crosswalk,seanlong/crosswalk,jondong/crosswalk,fujunwei/crosswalk,baleboy/crosswalk,crosswalk-project/crosswalk,marcuspridham/crosswalk,DonnaWuDongxia/crosswalk,xzhan96/crosswalk,jpike88/crosswalk,seanlong/crosswalk,axinging/crosswalk,crosswalk-project/crosswalk-efl,kurli/crosswalk,crosswalk-project/crosswalk-efl,PeterWangIntel/crosswalk,Pluto-tv/crosswalk,fujunwei/crosswalk,ZhengXinCN/crosswalk,huningxin/crosswalk,heke123/crosswalk,marcuspridham/crosswalk,TheDirtyCalvinist/spacewalk,leonhsl/crosswalk,minggangw/crosswalk,stonegithubs/crosswalk,kurli/crosswalk,axinging/crosswalk,crosswalk-project/crosswalk,heke123/crosswalk,Pluto-tv/crosswalk,TheDirtyCalvinist/spacewalk,marcuspridham/crosswalk,rakuco/crosswalk,Shouqun/crosswalk,marcuspridham/crosswalk,dreamsxin/crosswalk,xzhan96/crosswalk,jondong/crosswalk,qjia7/crosswalk,heke123/crosswalk,baleboy/crosswalk,bestwpw/crosswalk,baleboy/crosswalk,myroot/crosswalk,leonhsl/crosswalk,xzhan96/crosswalk,crosswalk-project/crosswalk-efl,lincsoon/crosswalk,jondong/crosswalk,jondong/crosswalk,tedshroyer/crosswalk,leonhsl/crosswalk,jpike88/crosswalk,wuhengzhi/crosswalk,chinakids/crosswalk,baleboy/crosswalk,huningxin/crosswalk,ZhengXinCN/crosswalk,RafuCater/crosswalk,tedshroyer/crosswalk,shaochangbin/crosswalk,kurli/crosswalk,qjia7/crosswalk,hgl888/crosswalk,crosswalk-project/crosswalk,bestwpw/crosswalk,jpike88/crosswalk,zeropool/crosswalk,hgl888/crosswalk,lincsoon/crosswalk,minggangw/crosswalk,shaochangbin/crosswalk,alex-zhang/crosswalk,Pluto-tv/crosswalk,kurli/crosswalk,shaochangbin/crosswalk,minggangw/crosswalk,myroot/crosswalk,pozdnyakov/crosswalk,zliang7/crosswalk,DonnaWuDongxia/crosswalk,stonegithubs/crosswalk,pk-sam/crosswalk,lincsoon/crosswalk,wuhengzhi/crosswalk,chinakids/crosswalk,RafuCater/crosswalk,huningxin/crosswalk,Bysmyyr/crosswalk,xzhan96/crosswalk,crosswalk-project/crosswalk-efl,lincsoon/crosswalk,shaochangbin/crosswalk,alex-zhang/crosswalk,fujunwei/crosswalk,Bysmyyr/crosswalk,marcuspridham/crosswalk,lincsoon/crosswalk,qjia7/crosswalk,PeterWangIntel/crosswalk,TheDirtyCalvinist/spacewalk,amaniak/crosswalk,zeropool/crosswalk,kurli/crosswalk,tomatell/crosswalk,amaniak/crosswalk,xzhan96/crosswalk,PeterWangIntel/crosswalk,wuhengzhi/crosswalk,myroot/crosswalk,axinging/crosswalk,zliang7/crosswalk,heke123/crosswalk,dreamsxin/crosswalk,qjia7/crosswalk,ZhengXinCN/crosswalk,siovene/crosswalk,XiaosongWei/crosswalk,ZhengXinCN/crosswalk,stonegithubs/crosswalk,amaniak/crosswalk,Pluto-tv/crosswalk,qjia7/crosswalk,pozdnyakov/crosswalk,PeterWangIntel/crosswalk,dreamsxin/crosswalk,axinging/crosswalk,heke123/crosswalk,tomatell/crosswalk,Bysmyyr/crosswalk,hgl888/crosswalk-efl,hgl888/crosswalk-efl,ZhengXinCN/crosswalk,alex-zhang/crosswalk,TheDirtyCalvinist/spacewalk,XiaosongWei/crosswalk,wuhengzhi/crosswalk,heke123/crosswalk,lincsoon/crosswalk,Shouqun/crosswalk,chinakids/crosswalk,minggangw/crosswalk,wuhengzhi/crosswalk,siovene/crosswalk,xzhan96/crosswalk,chinakids/crosswalk,stonegithubs/crosswalk,Pluto-tv/crosswalk,pk-sam/crosswalk,shaochangbin/crosswalk,chinakids/crosswalk,siovene/crosswalk,qjia7/crosswalk,minggangw/crosswalk,bestwpw/crosswalk,Bysmyyr/crosswalk,lincsoon/crosswalk,darktears/crosswalk,zliang7/crosswalk,dreamsxin/crosswalk,weiyirong/crosswalk-1,seanlong/crosswalk,minggangw/crosswalk,hgl888/crosswalk,Bysmyyr/crosswalk,zeropool/crosswalk,dreamsxin/crosswalk,crosswalk-project/crosswalk,dreamsxin/crosswalk,bestwpw/crosswalk,jpike88/crosswalk,alex-zhang/crosswalk,jondwillis/crosswalk,darktears/crosswalk,crosswalk-project/crosswalk-efl,fujunwei/crosswalk,rakuco/crosswalk,hgl888/crosswalk,RafuCater/crosswalk,chuan9/crosswalk,jondong/crosswalk,tomatell/crosswalk,jondong/crosswalk,DonnaWuDongxia/crosswalk,Pluto-tv/crosswalk,tedshroyer/crosswalk,siovene/crosswalk,crosswalk-project/crosswalk,jondwillis/crosswalk,heke123/crosswalk,zliang7/crosswalk,marcuspridham/crosswalk,jondwillis/crosswalk,bestwpw/crosswalk,rakuco/crosswalk,crosswalk-project/crosswalk-efl,RafuCater/crosswalk,huningxin/crosswalk,alex-zhang/crosswalk,pk-sam/crosswalk,huningxin/crosswalk,fujunwei/crosswalk,jondong/crosswalk,mrunalk/crosswalk,amaniak/crosswalk,heke123/crosswalk,darktears/crosswalk,zeropool/crosswalk,mrunalk/crosswalk,crosswalk-project/crosswalk,pozdnyakov/crosswalk,tomatell/crosswalk,stonegithubs/crosswalk,chuan9/crosswalk,TheDirtyCalvinist/spacewalk,siovene/crosswalk,chuan9/crosswalk,DonnaWuDongxia/crosswalk