Add tests, handle ruby engine / engine_version

This adds tests (for travis-ci.org - which pass),
and enhances the system to handle ruby engines.
(All which still just using sed regular expressions, so still fast).