Check for availability of required commands

Signed-off-by: Gianpaolo Macario <gmacario@gmail.com>
Merge pull request #6 from gmacario/check-commands

Check for availability of required commands