[bash] Quote test argument in .profile for portability.
[ruby] Append ~/.rvm/bin to the PATH.