Replcae ftools to fileutils, fix for rails 4