properly detect boost root
[skip ci]