Add smarter logic to webapp install