move mktemp method into homebrew-fork resource.rb

This is the only place it is used.
No longer need to include FileUtils.
Merge pull request #8335 from rolandwalker/move_homebrew_mktemp_to_resource

move mktemp method into homebrew-fork resource.rb