Make sure to check things exist before actually modifying them

This fixes crashes when a system does not have squashfs-tools or
a grub dir does not exist.
Make sure the hwinfo executable exists before calling it
Merge pull request #121 from shadeslayer/master

Make sure executables and paths exist before using them