Fix issue with multiple spaces in RUBIES path.
Add more tests for building/sorting RUBIES.