fix the issue of log directory not getting created on excluded distributions (namely debian, ubuntu)