Added parameter for extra webapp directories creation (eg.
shared/classes) and reviewed directories permissions