Added check for when owncloud docroot already exists. Worked on nested looping for the config stuff.