diff --git a/openbis_all/source/bash/build/tag.sh b/openbis_all/source/bash/build/tag.sh
index db41627539e114576eb821980c24bea4ba48715a..5ae175d01f8859fcbe6966cc3ffb76ee578f2d2f 100755
--- a/openbis_all/source/bash/build/tag.sh
+++ b/openbis_all/source/bash/build/tag.sh
@@ -20,6 +20,6 @@ svn copy svn+ssh://svncisd.ethz.ch/repos/cisd/openbis_all/branches/$1 svn+ssh://
 
 rm -rf elntemp
 svn co --depth=immediates svn+ssh://svncisd.ethz.ch/repos/cisd/openbis_all/tags/$1/$2/plasmid/source/core-plugins/newbrowser elntemp
-svn info svn+ssh://svncisd.ethz.ch/repos/cisd/openbis_all/tags/$1/$2 > elntemp/version.txt
+svn info svn+ssh://svncisd.ethz.ch/repos/cisd/openbis_all/tags/$1/$2|grep Path|awk -F: '{print $2}'|sed -e 's/ //g' > elntemp/version.txt
 svn add elntemp/version.txt
 svn commit elntemp -m "Added ELN build info to tag $1/$2"
\ No newline at end of file