diff --git a/Changelog.md b/Changelog.md
--- a/Changelog.md
+++ b/Changelog.md
@@ -1,3 +1,9 @@
+### 0.5.4.3
+
+- *nhm-tool*: fix bios shell script in generated *hie.yaml* for environments
+  where */bin/sh* is not a link to */bin/bash* but rather the classic *Bourne
+  Shell* or *dash* like in Ubuntu. More improvements hinted by *ShellCheck*.
+
 ### 0.5.4.2
 
 - *nhm-tool*: use cradle *bios* in generated *hie.yaml*. The bios shell script
diff --git a/ngx-export-distribution.cabal b/ngx-export-distribution.cabal
--- a/ngx-export-distribution.cabal
+++ b/ngx-export-distribution.cabal
@@ -1,5 +1,5 @@
 name:                       ngx-export-distribution
-version:                    0.5.4.2
+version:                    0.5.4.3
 synopsis:                   Build custom libraries for Nginx Haskell module
 description:                Build custom libraries for
         <https://github.com/lyokha/nginx-haskell-module Nginx Haskell module>.
diff --git a/nhm-tool.hs b/nhm-tool.hs
--- a/nhm-tool.hs
+++ b/nhm-tool.hs
@@ -603,20 +603,21 @@
      \    shell: |\n\
      \      if [ -L ", ghcEnvLnk, " ]\n\
      \      then\n\
-     \          echo -e \""
-    ,T.replace "-" "\\x2d" $ T.pack $ intercalate "\\n" initDataGhcOptions
-    ,"\" > $HIE_BIOS_OUTPUT\n\
-     \          for file in $(find * -name '[A-Z]*.hs')\n\
-     \          do\n\
-     \              if grep -q \"^\\s*module $(echo $file |\n\
-     \                  sed 's/^\\(.*\\)\\..*/\\1/;s/\\//./g')\" $file\n\
+     \          printf \""
+    ,T.replace "-" "\\055" $ T.pack $ intercalate "\\n" initDataGhcOptions
+    ,"\\n\" > \"$HIE_BIOS_OUTPUT\"\n\
+     \          find . -name '[A-Z]*.hs' -exec sh -c '\n\
+     \              file=$(echo \"$1\" | cut -c 3-)\n\
+     \              if grep -q \"^\\s*module $(echo \"$file\" |\n\
+     \                  sed '\\''s/^\\(.*\\)\\..*/\\1/;s/\\//./g'\\'')\" \
+     \\"$file\"\n\
      \              then\n\
-     \                  echo $file >> $HIE_BIOS_OUTPUT\n\
+     \                  echo \"$file\" >> \"$HIE_BIOS_OUTPUT\"\n\
      \              fi\n\
-     \          done\n\
+     \          ' sh {} \\;\n\
      \      else\n\
-     \          echo -n \"Ghc environment file wasn't found, \"`\n\
-     \                 `\"run \\\"make env\\\" and restart \
+     \          echo \"Ghc environment file wasn't found, \"`\n\
+     \              `\"run \\\"make env\\\" and restart \
      \language server.\" >&2\n\
      \          exit 1\n\
      \      fi\n"
