1.665: added ruby_specdir, memoize ruby_gemdir

ruby_gemdir is defined also in macros.d/ruby in case of rpm5 which we
override