diff --git a/cdist/test/fixtures/remote/copy b/cdist/test/fixtures/remote/copy
index 57369b53..a4627716 100755
--- a/cdist/test/fixtures/remote/copy
+++ b/cdist/test/fixtures/remote/copy
@@ -18,10 +18,6 @@
 # You should have received a copy of the GNU General Public License
 # along with cdist. If not, see <http://www.gnu.org/licenses/>.
 #
-#
-# This is based on other/examples/remote/local/, but uses --dereference for the
-# test cases
-#
 
-code="$(echo "$@" | sed "s|\([[:space:]]+\)$__target_host:|\1|g")"
+code="$(echo "$@" | sed "s|\([[:space:]]\)$__target_host:|\1|g")"
 cp --dereference $code
diff --git a/other/examples/remote/local/copy b/other/examples/remote/local/copy
index 0ddc44c8..0cec3643 100755
--- a/other/examples/remote/local/copy
+++ b/other/examples/remote/local/copy
@@ -20,5 +20,5 @@
 #
 #
 
-code="$(echo "$@" | sed "s|\([[:space:]]+\)$__target_host:|\1|g")"
+code="$(echo "$@" | sed "s|\([[:space:]]\)$__target_host:|\1|g")"
 cp --dereference $code