language_module_dependency: fix finding opam.

`opam list <package>` only checks if the package is available

Closes #35209.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>