Check for availability of required commands

Signed-off-by: Gianpaolo Macario <gmacario@gmail.com>