BuildTargets: restore old implementation which doesn't use `Path.resolve()`
BuildTargets: restore old implementation which doesn't use `Path.resolve()`

Summary:
The new implementation uses `Path.resolve()`, which drops the path
prefix when the format string looks like an absolute path.

Test Plan: testing...

Reviewed By: yiding

fbshipit-source-id: 1fd0377

marcinkwiatkowski/buck,robbertvanginkel/buck,SeleniumHQ/buck,ilya-klyuchnikov/buck,zpao/buck,SeleniumHQ/buck,marcinkwiatkowski/buck,vschs007/buck,raviagarwal7/buck,shybovycha/buck,zhan-xiong/buck,Addepar/buck,nguyentruongtho/buck,SeleniumHQ/buck,rmaz/buck,sdwilsh/buck,facebook/buck,k21/buck,clonetwin26/buck,k21/buck,zhan-xiong/buck,marcinkwiatkowski/buck,robbertvanginkel/buck,justinmuller/buck,janicduplessis/buck,robbertvanginkel/buck,romanoid/buck,dsyang/buck,daedric/buck,k21/buck,ilya-klyuchnikov/buck,justinmuller/buck,clonetwin26/buck,zpao/buck,illicitonion/buck,marcinkwiatkowski/buck,marcinkwiatkowski/buck,OkBuilds/buck,janicduplessis/buck,rmaz/buck,robbertvanginkel/buck,grumpyjames/buck,darkforestzero/buck,grumpyjames/buck,romanoid/buck,grumpyjames/buck,shs96c/buck,grumpyjames/buck,shybovycha/buck,rmaz/buck,SeleniumHQ/buck,zhan-xiong/buck,facebook/buck,Addepar/buck,shybovycha/buck,clonetwin26/buck,Addepar/buck,LegNeato/buck,vschs007/buck,k21/buck,zhan-xiong/buck,raviagarwal7/buck,davido/buck,vschs007/buck,raviagarwal7/buck,romanoid/buck,k21/buck,zhan-xiong/buck,marcinkwiatkowski/buck,Addepar/buck,romanoid/buck,darkforestzero/buck,daedric/buck,nguyentruongtho/buck,SeleniumHQ/buck,justinmuller/buck,zhan-xiong/buck,sdwilsh/buck,facebook/buck,ilya-klyuchnikov/buck,sdwilsh/buck,romanoid/buck,ilya-klyuchnikov/buck,clonetwin26/buck,davido/buck,illicitonion/buck,dsyang/buck,raviagarwal7/buck,grumpyjames/buck,raviagarwal7/buck,justinmuller/buck,sdwilsh/buck,dsyang/buck,darkforestzero/buck,shybovycha/buck,kageiit/buck,daedric/buck,davido/buck,daedric/buck,brettwooldridge/buck,illicitonion/buck,shs96c/buck,JoelMarcey/buck,robbertvanginkel/buck,zhan-xiong/buck,janicduplessis/buck,LegNeato/buck,shybovycha/buck,illicitonion/buck,ilya-klyuchnikov/buck,sdwilsh/buck,JoelMarcey/buck,davido/buck,shs96c/buck,daedric/buck,k21/buck,LegNeato/buck,kageiit/buck,brettwooldridge/buck,davido/buck,daedric/buck,brettwooldridge/buck,raviagarwal7/buck,rmaz/buck,kageiit/buck,marcinkwiatkowski/buck,dsyang/buck,SeleniumHQ/buck,shybovycha/buck,SeleniumHQ/buck,marcinkwiatkowski/buck,Addepar/buck,brettwooldridge/buck,ilya-klyuchnikov/buck,Addepar/buck,raviagarwal7/buck,clonetwin26/buck,LegNeato/buck,brettwooldridge/buck,shybovycha/buck,darkforestzero/buck,kageiit/buck,robbertvanginkel/buck,k21/buck,JoelMarcey/buck,daedric/buck,illicitonion/buck,shybovycha/buck,daedric/buck,marcinkwiatkowski/buck,rmaz/buck,davido/buck,zpao/buck,zhan-xiong/buck,romanoid/buck,dsyang/buck,vschs007/buck,facebook/buck,JoelMarcey/buck,daedric/buck,romanoid/buck,JoelMarcey/buck,shs96c/buck,clonetwin26/buck,marcinkwiatkowski/buck,SeleniumHQ/buck,k21/buck,LegNeato/buck,illicitonion/buck,davido/buck,brettwooldridge/buck,sdwilsh/buck,sdwilsh/buck,shs96c/buck,janicduplessis/buck,rmaz/buck,zhan-xiong/buck,janicduplessis/buck,LegNeato/buck,Addepar/buck,JoelMarcey/buck,OkBuilds/buck,Addepar/buck,grumpyjames/buck,Addepar/buck,JoelMarcey/buck,OkBuilds/buck,kageiit/buck,brettwooldridge/buck,raviagarwal7/buck,dsyang/buck,nguyentruongtho/buck,Addepar/buck,darkforestzero/buck,shs96c/buck,dsyang/buck,davido/buck,zhan-xiong/buck,robbertvanginkel/buck,janicduplessis/buck,grumpyjames/buck,facebook/buck,JoelMarcey/buck,davido/buck,raviagarwal7/buck,robbertvanginkel/buck,dsyang/buck,JoelMarcey/buck,OkBuilds/buck,sdwilsh/buck,rmaz/buck,vschs007/buck,ilya-klyuchnikov/buck,OkBuilds/buck,grumpyjames/buck,shs96c/buck,sdwilsh/buck,k21/buck,rmaz/buck,darkforestzero/buck,shs96c/buck,OkBuilds/buck,brettwooldridge/buck,dsyang/buck,justinmuller/buck,justinmuller/buck,darkforestzero/buck,shybovycha/buck,robbertvanginkel/buck,ilya-klyuchnikov/buck,darkforestzero/buck,LegNeato/buck,darkforestzero/buck,robbertvanginkel/buck,daedric/buck,romanoid/buck,rmaz/buck,nguyentruongtho/buck,romanoid/buck,romanoid/buck,illicitonion/buck,SeleniumHQ/buck,JoelMarcey/buck,k21/buck,kageiit/buck,vschs007/buck,grumpyjames/buck,sdwilsh/buck,dsyang/buck,illicitonion/buck,grumpyjames/buck,zpao/buck,janicduplessis/buck,justinmuller/buck,nguyentruongtho/buck,zhan-xiong/buck,davido/buck,clonetwin26/buck,SeleniumHQ/buck,darkforestzero/buck,shybovycha/buck,shs96c/buck,vschs007/buck,illicitonion/buck,justinmuller/buck,raviagarwal7/buck,Addepar/buck,facebook/buck,darkforestzero/buck,davido/buck,k21/buck,justinmuller/buck,zpao/buck,OkBuilds/buck,brettwooldridge/buck,darkforestzero/buck,SeleniumHQ/buck,OkBuilds/buck,zpao/buck,zhan-xiong/buck,sdwilsh/buck,janicduplessis/buck,nguyentruongtho/buck,marcinkwiatkowski/buck,illicitonion/buck,shs96c/buck,shybovycha/buck,JoelMarcey/buck,zpao/buck,robbertvanginkel/buck,robbertvanginkel/buck,vschs007/buck,LegNeato/buck,davido/buck,vschs007/buck,romanoid/buck,illicitonion/buck,janicduplessis/buck,shs96c/buck,justinmuller/buck,OkBuilds/buck,romanoid/buck,OkBuilds/buck,rmaz/buck,raviagarwal7/buck,LegNeato/buck,JoelMarcey/buck,marcinkwiatkowski/buck,dsyang/buck,OkBuilds/buck,k21/buck,clonetwin26/buck,sdwilsh/buck,daedric/buck,shybovycha/buck,justinmuller/buck,raviagarwal7/buck,SeleniumHQ/buck,Addepar/buck,illicitonion/buck,sdwilsh/buck,ilya-klyuchnikov/buck,clonetwin26/buck,ilya-klyuchnikov/buck,marcinkwiatkowski/buck,vschs007/buck,grumpyjames/buck,dsyang/buck,ilya-klyuchnikov/buck,LegNeato/buck,shybovycha/buck,clonetwin26/buck,kageiit/buck,vschs007/buck,clonetwin26/buck,SeleniumHQ/buck,brettwooldridge/buck,clonetwin26/buck,LegNeato/buck,janicduplessis/buck,JoelMarcey/buck,romanoid/buck,Addepar/buck,facebook/buck,davido/buck,brettwooldridge/buck,daedric/buck,justinmuller/buck,zhan-xiong/buck,janicduplessis/buck,dsyang/buck,brettwooldridge/buck,ilya-klyuchnikov/buck,justinmuller/buck,vschs007/buck,nguyentruongtho/buck,janicduplessis/buck,vschs007/buck,grumpyjames/buck,rmaz/buck,clonetwin26/buck,k21/buck,LegNeato/buck,daedric/buck,darkforestzero/buck,raviagarwal7/buck,rmaz/buck,brettwooldridge/buck,robbertvanginkel/buck,rmaz/buck,shs96c/buck,shs96c/buck,ilya-klyuchnikov/buck,LegNeato/buck,OkBuilds/buck,OkBuilds/buck,illicitonion/buck