better update-alternatives alternative for ruby