Updated version and made webappdir optional