If the dune executable currently running isn't what dune resolves to in PATH, packages that invoke dune in their build command should still start a copy of the current dune rather than the one from PATH. This situation arises when running a development version of dune where the exe is named main.exe.