Use command -v to detect whether and where software is installed

Fixes: https://github.com/afaqurk/linux-dash/issues/102#issuecomment-34722472