Don't try to search if `ag` isn't available

Fixes #32