do ruby adjustments only for older(ish) ubuntu versions

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>