Replace backtick commands with FileUtils calls