fix missing condition for installation of ruby packages