Current code in kernel/loader.rb ignores the check for existence of Rubinius::LIB_PATH, and the logic also disables the message about main library not existing, since it depends on Rubinius::LIB_PATH being nil, which is never the case.
Here's a fix for that, in which we first test the path specified in environment variable RBX_LIB (if any) and then the configured Rubinius::LIB_PATH, checking for existence and sending a message to the user in case the path does not exist.
Feel free to ignore the other two commits, they're small cleanups with typo fixes and a microoptimization.
small typo fixes in kernel
actually check for the existence of the configured Rubinius::LIB_PATH
use array literal instead of empty array creation plus Array#<<
This is a microoptimization, but still results in ~12% faster code
compared to several calls to Array#<<.
This pull request passes (merged ade22cb into ae1fad4).