removed getoptlong dependency for Ruby 2.1+