fix the web_root setting functionality broken in d73cc1c.