Fix ruby 1.8 compatibility with file-refactor changes

Ruby 1.8 Y U NO EOL YET :rage: