use FileUtils.chmod instead of chmod command

use FileUtils.chmod instead of chmod command