Add work with dirPermissions in scratchLocal script

  - umask setting create by gen script
  - umask setting read from file by slave script