As discussed in #1252, we would have better error messages if the `ocamlformat` action was invoked from `build_dir`.