Extract version numbers from lhapdf and boost tarball names.