fix: instance method File.size does not exist in ruby1.8