diff --git a/slapos/recipe/generic_kumofs/__init__.py b/slapos/recipe/generic_kumofs/__init__.py
index 0b939c8879e7282e1e528c248aefe3e86e20afc0..d18dcfa110e2826ee557d60bc09528f4da6b1746 100644
--- a/slapos/recipe/generic_kumofs/__init__.py
+++ b/slapos/recipe/generic_kumofs/__init__.py
@@ -53,6 +53,7 @@ class Recipe(GenericBaseRecipe):
       kumo_server_port=kumo_server_port,
       kumo_server_listen_port=kumo_server_listen_port,
       kumo_gateway_port=kumo_gateway_port
+      shell_path=self.options['shell-path'],
     )
 
     path_list.append(self.createExecutable(self.options['gateway-wrapper'],
diff --git a/slapos/recipe/generic_kumofs/template/kumo_gateway.in b/slapos/recipe/generic_kumofs/template/kumo_gateway.in
index 912f8f1007ad2cad325c56ce13a634375cee8ebc..f18c8a4ec358c4bd92c2c8506db279c2afb6f3b2 100644
--- a/slapos/recipe/generic_kumofs/template/kumo_gateway.in
+++ b/slapos/recipe/generic_kumofs/template/kumo_gateway.in
@@ -1,2 +1,2 @@
-#!/bin/sh
+#!%(shell_path)s
 exec %(kumo_gateway_binary)s -F -E -m %(kumo_manager_ip)s:%(kumo_manager_port)s -t %(kumo_gateway_ip)s:%(kumo_gateway_port)s -o %(kumo_gateway_log)s
diff --git a/slapos/recipe/generic_kumofs/template/kumo_manager.in b/slapos/recipe/generic_kumofs/template/kumo_manager.in
index e63e3c569de5f689176f19793706e49f90d3c95f..25e2ed1a0e78385c08f11b08f309a2d01d325af3 100644
--- a/slapos/recipe/generic_kumofs/template/kumo_manager.in
+++ b/slapos/recipe/generic_kumofs/template/kumo_manager.in
@@ -1,2 +1,2 @@
-#!/bin/sh
+#!%(shell_path)s
 exec %(kumo_manager_binary)s -a -l %(kumo_manager_ip)s:%(kumo_manager_port)s -o %(kumo_manager_log)s
diff --git a/slapos/recipe/generic_kumofs/template/kumo_server.in b/slapos/recipe/generic_kumofs/template/kumo_server.in
index 81aeabb323590320bc1be69b1854d50cdc3d9687..aba0ac6f257d8f44a2c1d32b8a37677aef41416d 100644
--- a/slapos/recipe/generic_kumofs/template/kumo_server.in
+++ b/slapos/recipe/generic_kumofs/template/kumo_server.in
@@ -1,2 +1,2 @@
-#!/bin/sh
+#!%(shell_path)s
 exec %(kumo_server_binary)s -l %(kumo_server_ip)s:%(kumo_server_port)s -L %(kumo_server_listen_port)s -m %(kumo_manager_ip)s:%(kumo_manager_port)s -s %(kumo_server_storage)s -o %(kumo_server_log)s