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

This reverts commit 9ccb2a77f98f64bdd52a593b04bac446cd141973. 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.