Fixes file spec in Ruby < 2.1
Fixes file spec in Ruby < 2.1

yuzu-es/logstash-logger,dwbutler/logstash-logger,blacklane/logstash-logger,yads/logstash-logger,Nikita-V/logstash-logger,ashrestha91/logstash-logger