more robust path/version discovery.