simplified command-available-test

based on http://devcenter.wercker.com/articles/steps/guide.html