sed is in /bin/ rather than in /usr/bin on some systems, which makes the scripts fail in the build environment. sed should be in the PATH tough.
@@ -3,4 +3,4 @@
# this script creates a plugin for nemo, just be replacing
# all occurences of Nautilus with Nemo.
-/usr/bin/sed -i.org -e 's/autilus/emo/g' syncstate_nemo.py
+sed -i.org -e 's/autilus/emo/g' syncstate_nemo.py
# this script replaces the line
# appname = 'ownCloud'
# with the correct branding name in the syncstate.py script
-/usr/bin/sed -i.org -e 's/appname\s*=\s*'"'"'ownCloud'"'/appname = '$1'/" syncstate.py
+sed -i.org -e 's/appname\s*=\s*'"'"'ownCloud'"'/appname = '$1'/" syncstate.py