diff --git a/cdist/conf/type/__directory/gencode-remote b/cdist/conf/type/__directory/gencode-remote
index 4220c6fb..374db47a 100755
--- a/cdist/conf/type/__directory/gencode-remote
+++ b/cdist/conf/type/__directory/gencode-remote
@@ -57,18 +57,18 @@ get_current_value() {
 }
 
 set_group() {
-    echo "chgrp '$recursive' '$1' '$destination'"
-    echo "chgrp '$recursive' '$1'" >> "$__messages_out"
+    echo "chgrp $recursive '$1' '$destination'"
+    echo "chgrp $recursive '$1'" >> "$__messages_out"
 }
 
 set_owner() {
-    echo "chown '$recursive' '$1' '$destination'"
-    echo "chown '$recursive' '$1'" >> "$__messages_out"
+    echo "chown $recursive '$1' '$destination'"
+    echo "chown $recursive '$1'" >> "$__messages_out"
 }
 
 set_mode() {
-    echo "chmod '$recursive' '$1' '$destination'"
-    echo "chmod '$recursive' '$1'" >> "$__messages_out"
+    echo "chmod $recursive '$1' '$destination'"
+    echo "chmod $recursive '$1'" >> "$__messages_out"
 }
 
 case "$state_should" in