fix typo in command name and now properly check if command exist on system (thanks to Frank Lienhard)