Fixes to allow an opam binary to replace a dom0 one

We must delay reading the inventory file until after parsing the command-line