Add extra validation for faulty empty wwwdir init