Added try/catch when checking for ps in PATH. Fixes #702

This should save us if there is anything that the `file` module chokes on in `$PATH` (it no longer chokes on a `.` in the `$PATH`).

This doesn't catch every component error, though-- it will just fix this one problem.