Use 'command -v' to detect whether and where software is installed (instead of 'which')