Merge branch 'hotfix/1.21.11'
move brew prefix check to new function, fix detecting installed packages, fix generating certificates fail when openssl is missing, fix #2038
Make requirements_osx_brew_lib_installed_prefix_check actually read its argument

The refactoring that introduced requirements_osx_brew_lib_installed_prefix_check broke homebrew-based installation: rvm install fails with "Somehow it happened there is no executable 'openssl'…" even though brew install openssl succeeded.

The reason seems to be that requirements_osx_brew_lib_installed_prefix_check() reads $brew_lib instead of $1. Suggest replacing ${brew_lib} with $1 on this line: this lets "rvm install" finish here.
Merge pull request #2041 from jonathanperret/patch-1

Fix error locating openssl executable in homebrew-based rvm install
detect standard problems when using ruby, closes #2040
Merge branch 'master' of github.com:wayneeseguin/rvm
improve detecting homebrew prefix, update #2038, update #2041
1.21.12
Merge branch 'master' into hotfix/1.21.12
Merge branch 'hotfix/1.21.12' into stable