Revert "LPS-48313 the previous logic was not valid because some OSGI plugins still have docroot/WEB-INF/web.xml but docroot/WEB-INF/lib"

This reverts commit 72c4ae1802a84a959d10145f75e4d14502b7e31a.
Revert "LPS-48294 Fix lib dir for all plugins that have docroot/WEB-INF"

This reverts commit 4df3c127c8a0a3cab7c9a0341caa15e8b00bf480.
Revert "LPS-48313 Revert commits from 6c7e1914168d7288351a8cb21499bd07f19cc105 to c4f0e4c1d9d313456b7b0c515a5cd0162ff76b77"

This reverts commit 374e55579db94c5113bec925101f75a7af8731e2.