Feature/fixing directory owner

This is based on https://github.com/pgib/virtualhost.sh/pull/37 and https://github.com/pgib/virtualhost.sh/pull/38