Fixed reset of logdir perms