Changed detection if there is a webapp directory present.

Packaging is not taken into consideration anymore