Use `command -v` to check for presence of autogoo

As per http://stackoverflow.com/a/677212