chmod before script