This seems like a convoluted and un-maintainable approach.  What version(s) of Debian need this work around?  Why is Ruby 1.8 the system default in this particular case for this system?  Was this a greenfield run on Debian, or an existing system with Ruby previously installed?  Need more information.