-f tests whether the file exists, -x tests whether it exists and is executable.  If the user did something bad and messed up their permissions, this will catch it and prompt them to reinstall their platform tools.  Otherwise exec will fail and give us an unknown error condition.