refactor(system): Replace system() with FileUtils calls