[PATCH 076/153] fix bug in link version detection
[PATCH 076/153] fix bug in link version detection

RB_ID=181340

(sapling split of 2f2a6b1db6059722c702029924d3bebb159dfb5f)

(sapling split of f3794cb6dfb6ef93bb9534a7514994def73ff4f3)
kwlzn/pex,URXtech/pex,pombredanne/pex,jamesbroadhead/pex,snyaggarwal/pex,mzdanieltest/pex,mzdanieltest/pex,snyaggarwal/pex,pantsbuild/pex,jsirois/pex,jsirois/pex,pantsbuild/pex,kwlzn/pex,jamesbroadhead/pex,sixninetynine/pex,sixninetynine/pex,rouge8/pex,rouge8/pex,pombredanne/pex,URXtech/pex