replaced given/when by regular if/elsif cascades to get rid of perl's 'experimental' warnings (bnc#889595); version bump