fix up wsgi template for 1.7 (bug 1112006)