I know that this is from the original code but this looks like it needs to be adopted if we generate OPAM files in the `opam/` subdirectory. _Originally posted by @Leonidas-from-XIV in https://github.com/ocaml/dune/pull/9811#discussion_r1463363517_