Revert "LPS-48313 Make it work whether I type "ant jar" or "ant war""

This reverts commit b33f65eff3745667c3c66852307a0155410d9258. OSGi modules with a portlet structure fail to deploy. This logic considers that those modules are deployed as wars, but they are actually deployed as jars.