diff --git a/helpers/make-epiphany-browser b/helpers/make-epiphany-browser
index 4144e1a3d8a08555036decab7bb1179d61892349..2432f01e77e76036f8034f97f2a6fe40074c94c2 100644
--- a/helpers/make-epiphany-browser
+++ b/helpers/make-epiphany-browser
@@ -21,7 +21,12 @@ VERSION=1
 
 . ./config
 
-sed -i 's/Ubuntu/Trisquel/g;s/10.10/5.0/g; s/11.10/5.5/g;' debian/branding.conf.in
+cat << EOF > debian/branding.conf.in
+[User Agent]
+Vendor=Trisquel GNU/Linux
+VendorSub=Toutatis $REVISION
+VendorComment=@PACKAGEVERSION@
+EOF
 
 changelog "Epiphany browser compiled for Trisquel"
 #Branding purposes. Closes bug 1413