bin: compatible for Ruby2.1.3 and Ruby2.1.4

refs: https://bugs.ruby-lang.org/issues/10272