lit: PR21417: don't try to update OCAMLPATH if LibDir is empty.