Fix unit tests to deal with ruby interpreter on the command line