How to handle potential JRuby error while installing librarian-chef