Test ruby version before requiring docker-api

* docker-api requires ruby 1.9 and bigger