RUBY-15995: command line launcher should exit immediately on Mac
reviewed by Aleksey Pivovarov
(cherry picked from commit df04a2d)