Use FileUtils instead of Dir