fix log dir permissions, ignore working files