add checks for xml and dom when installing
Merge pull request #1987 from owncloud/fixinstalldeps

add checks for xml and dom when installing