diff --git a/buildVersion.py b/buildVersion.py
index 256f5c3e873e1b3f74eb0c2e68b224f60bbe2de8..89baace07a2ec3f02a7679d8baeb15739cc83e4d 100755
--- a/buildVersion.py
+++ b/buildVersion.py
@@ -42,7 +42,7 @@ import urllib
 
 
 # constants
-APP = 'mygit_dbui_04x'
+APP = os.path.basename(os.getcwd())
 CHANGELOG = 'static/plugin_dbui/CHANGELOG'
 DBUI_W2P = 'web2py.plugin.dbui.%s.w2p'
 JSBASE = 'static/plugin_dbui/src/base.js'
diff --git a/controllers/default.py b/controllers/default.py
index e5a335cb63d4aca5a1b4f72cbf8fab64e8816812..587056d0ce274348e15c9a391996364f6a28e007 100644
--- a/controllers/default.py
+++ b/controllers/default.py
@@ -19,7 +19,7 @@ def pack_plugin():
     
     """
     pname = 'dbui'
-    fname = 'web2py.plugin.%s.w2p' %pname
+    fname = 'web2py.plugin.%s.w2p' % pname
     filename = plugin_pack(request.application, pname, request)
 
     if filename: