bug fix:when webroot/appdir variable is empty