Updated logic for guessing tools paths.