Extract absolute path finding into its own method
Extract absolute path finding into its own method

Indent some wrongly indented code, too.

Signed-off-by: Kyrylo Silin <6129bf6f04030cd1423e4f3df28402e79fbf30a4@gmail.com>

icebreaker/pry,85x14/pry,icebreaker/pry,jasonm23/pry,tdg5/pry,raeno/pry,bronzdoc/pry,ngpestelos/pry,gfvcastro/pry,caporta/pry,printercu/pry,deivid-rodriguez/pry,raeno/pry,josue804/debunker,geoffreylitt/pry,jasnow/pry,sferik/pry,jasonm23/pry,jasnow/pry,85x14/pry,scalixte-mdsol/pry,sideci-sample/sideci-sample-pry,caporta/pry,scalixte-mdsol/pry,nju520/pry,richo/pry,josue804/debunker,ooohiroyukiooo/pry,shockone/pry,bronzdoc/pry,ooohiroyukiooo/pry,ngpestelos/pry,pvdb/pry,nju520/pry,jasonm23/pry,pvdb/pry,sferik/pry,scalixte-mdsol/pry,shockone/pry,ooohiroyukiooo/pry,printercu/pry,raeno/pry,nju520/pry,tdg5/pry,shockone/pry,tdg5/pry,caporta/pry,jasnow/pry,85x14/pry,geoffreylitt/pry,gfvcastro/pry