Change file permissions of log and run dirs