Use /bin/echo to write the initial instpkg.xml. Hopefully, the behavior of /bin/echo is independant on the shell Add a sudo to a sed in finc_install_blfs (needed in some cases)