[JENKINS-9741] Fixed to pass file permissions with octals.