Prefer FileUtils over shell

This change replaces as many of the calls to shell for file
manipulations (e.g. cp, mv, rm) with FileUtils as is possible.

[#59117282]
Merge 59117282-prefer-fileutils to master

[Completes #59117282]