Owncloud fixes for running with webfaction