Apply ownership changes to webapp dir

Change of ownership should also be applied to webapps directory. Also as
part of this commit, I have used var $root_dir instead of hardcoded
path.