Make sure executables and paths exist before using them

process1 here is set up to use process1's stdout as stdin, this won't work. hwinfo needs to be the fist process to run, which then pipes its output to grep.