fix Ruby1.9 support for fileutils