renamed: detect_tools --> which
see last commit