Replace backtick commands with FileUtils calls

This fixes errors when paths had spaces or parenthesis in the path. I believe this will also fix a few windows issues. Moving forward we should watch out for backtick commands.