Use RUBY_INSTALL_DIR instead of SHARE_DIR.

* Calculate RUBY_INSTALL_DIR wrt $BASH_SOURCE.