fix application bundle build script on Mavericks

Ruby 1.9 >= don't like ftools and moved this functionality to fileutils.