Adopt to ruby 1.9 modules.

Change ftools to fileutils, ruby 1.9 changes.