BUG #14922: Fix python module locating logic for static builds.

vtkProcessModuleInitializePython didn't handle the case that ParaView
was built as a static build. For static builds, the Python module
locating logic is not same as the one for shared builds since shared
builds typically use shared-forwarding executables. This commit expands
that logic.

Change-Id: I9da105148b2f1af68f8a3deae0f819a89823a2f7
Merge topic '14922_fix_python_from_install' into next

72d0a78d BUG #14922: Fix python module locating logic for static builds.