diff --git a/templates/debug.mako b/templates/debug.mako
index 3bc7ae5..d01d6cd 100644
--- a/templates/debug.mako
+++ b/templates/debug.mako
@@ -1,4 +1,4 @@
-<%include file="/support/header.mako" args="environ=environ, cookies=cookies, title='Debug'"/>
+<%include file="/support/header.mako" args="environ=environ, cookies=cookies, title='Debug - Earwig\'s Copyvio Detector'"/>
% for key, value in environ.items():
% if key not in ["wsgi.input", "wsgi.errors", "PATH"]:
diff --git a/templates/support/header.mako b/templates/support/header.mako
index 43fe3c7..e49ad66 100644
--- a/templates/support/header.mako
+++ b/templates/support/header.mako
@@ -1,11 +1,6 @@
<%page args="environ, cookies, title"/>\
<%namespace module="copyvios.background" import="set_background"/>\
-<%!
- from os import path
-%>\
-<%
- root = path.dirname(environ["SCRIPT_NAME"])
-%>\
+<% root = environ["SCRIPT_NAME"] %>\