Fix error in os.path.dirname
More changes towards a Django 1.5 compliant MozBuzz