set log dir permissions on start