diff -uNr twm-1.0.11/src/menus.c twm-1.0.11.mod/src/menus.c
--- twm-1.0.11/src/menus.c	2020-06-15 02:58:19.000000000 +0300
+++ twm-1.0.11.mod/src/menus.c	2020-09-24 00:06:10.268351973 +0300
@@ -2193,7 +2193,7 @@
         }
         break;
     case F_STARTWM:
-        execlp("/bin/sh", "sh", "-c", action, (void *) NULL);
+        execlp("@TERMUX_PREFIX@/bin/sh", "sh", "-c", action, (void *) NULL);
         fprintf(stderr, "%s:  unable to start:  %s\n", ProgramName, *Argv);
         break;
 
