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