Fix environment errors
Update to 6.0.4 owncloud for testing