fix directory resolution on case-insensitive filesystems
fix directory resolution on case-insensitive filesystems

Summary: our custom case-insensitive implementation of `dir_exists` didn't handle symlinks. reusing `file_exists`, since it does handle them.

Reviewed By: @avikchaudhuri, @gabelevi

Differential Revision: D2178180

JonathanUsername/flow,cesarandreu/flow,mcanthony/flow-type,ylu1317/flow,Eyyub/flow,samwgoldman/flow,ianobermiller/flow,ianobermiller/flow,lyip1992/flow,gabro/flow,davidmason/flow,nmote/flow,samwgoldman/flow,nmote/flow,MichaelDeBoey/flow,jamesgpearce/flow,Jericho25/flow,popham/flow,nmote/flow,gabelevi/flow,jdelStrother/flow,chenglou/flow,gabelevi/flow,nmote/flow,danvk/flow,d14b3l/flow,ylu1317/flow,facebook/flow,YelaSeamless/flow,JonathanUsername/flow,AprilArcus/flow,jamesgpearce/flow,JeckoHeroOrg/flow,shiftcars/flow,MichaelDeBoey/flow,graue/flow,jamesgpearce/flow,Eyyub/flow,ylu1317/flow,JeckoHeroOrg/flow,jeffmo/flow,CJstar/flow,paulshen/flow,MichaelDeBoey/flow,lyip1992/flow,nmote/flow,dv/flow,gabelevi/flow,mcanthony/flow-type,TiddoLangerak/flow,JeckoHeroOrg/flow,Drooids/flow,darioajr/flow,lyip1992/flow,JonathanUsername/flow,shiftcars/flow,chenglou/flow,gabro/flow,asivitz/flow,facebook/flow,mroch/flow,graue/flow,JohnyDays/flow,dv/flow,claudiopro/flow,AgentME/flow,YelaSeamless/flow,gabro/flow,CJstar/flow,d14b3l/flow,rafaelstz/flow,graue/flow,JohnyDays/flow,ForbesLindesay/flow,AgentME/flow,MichaelDeBoey/flow,d14b3l/flow,OCamlPro/flow,graue/flow,jeffutter/flow,chenglou/flow,Drooids/flow,jeffutter/flow,popham/flow,shiftcars/flow,ianobermiller/flow,dv/flow,AprilArcus/flow,gabelevi/flow,JonathanUsername/flow,davidmason/flow,Wanderfalke/flow,cesarandreu/flow,OCamlPro/flow,samwgoldman/flow,ylu1317/flow,TiddoLangerak/flow,jdelStrother/flow,jamesgpearce/flow,paulshen/flow,fletcherw/flow,popham/flow,matklad/flow,facebook/flow,ylu1317/flow,shiftcars/flow,MichaelDeBoey/flow,popham/flow,rafaelstz/flow,ForbesLindesay/flow,Fresheyeball/flow,Eyyub/flow,popham/flow,AprilArcus/flow,jgrund/flow,JonathanUsername/flow,TiddoLangerak/flow,mroch/flow,samwgoldman/flow,jgrund/flow,dv/flow,jeffmo/flow,gabro/flow,TiddoLangerak/flow,davidmason/flow,JohnyDays/flow,facebook/flow,jeffmo/flow,fletcherw/flow,matklad/flow,Drooids/flow,samwgoldman/flow,jeffutter/flow,Wanderfalke/flow,lyip1992/flow,graue/flow,facebook/flow,KevinTCoughlin/flow,jeffutter/flow,jamesgpearce/flow,mroch/flow,TiddoLangerak/flow,popham/flow,gabro/flow,facebook/flow,chenglou/flow,JeckoHeroOrg/flow,Fresheyeball/flow,YelaSeamless/flow,popham/flow,Wanderfalke/flow,rafaelstz/flow,chenglou/flow,mroch/flow,jdelStrother/flow,nmote/flow,davidmason/flow,jgrund/flow,d14b3l/flow,claudiopro/flow,JonathanUsername/flow,AgentME/flow,AgentME/flow,matklad/flow,Jericho25/flow,asivitz/flow,siddhartharay007/flow,rafaelstz/flow,CJstar/flow,jdelStrother/flow,jeffmo/flow,ianobermiller/flow,jdelStrother/flow,mroch/flow,JohnyDays/flow,YelaSeamless/flow,AprilArcus/flow,danvk/flow,darioajr/flow,samwgoldman/flow,asivitz/flow,jamesgpearce/flow,davidmason/flow,Drooids/flow,ForbesLindesay/flow,darioajr/flow,Eyyub/flow,nmote/flow,ForbesLindesay/flow,KevinTCoughlin/flow,AgentME/flow,YelaSeamless/flow,ForbesLindesay/flow,JeckoHeroOrg/flow,Jericho25/flow,Wanderfalke/flow,claudiopro/flow,KevinTCoughlin/flow,facebook/flow,jgrund/flow,matklad/flow,mroch/flow,gabelevi/flow,JonathanUsername/flow,cesarandreu/flow,jgrund/flow,asivitz/flow,claudiopro/flow,siddhartharay007/flow,shiftcars/flow,ForbesLindesay/flow,mcanthony/flow-type,darioajr/flow,AprilArcus/flow,Fresheyeball/flow,mroch/flow,d14b3l/flow,samwgoldman/flow,fletcherw/flow,gabelevi/flow,fletcherw/flow,OCamlPro/flow,chenglou/flow,jgrund/flow,OCamlPro/flow,d14b3l/flow,paulshen/flow,jeffmo/flow,fletcherw/flow,jeffmo/flow,Fresheyeball/flow,jamesgpearce/flow,gabelevi/flow,gabro/flow,claudiopro/flow,jdelStrother/flow,siddhartharay007/flow,KevinTCoughlin/flow,siddhartharay007/flow,paulshen/flow,CJstar/flow,danvk/flow,shiftcars/flow,rafaelstz/flow,cesarandreu/flow,AprilArcus/flow,danvk/flow,matklad/flow,mcanthony/flow-type,fletcherw/flow,graue/flow