For bug #82378, only set permissions on PORT_LOGDIR if it is created automatically...