Better support for gems; log versions