Attempt to fix Mac OS by normalizing OS supplied paths where necessary

Background information: https://github.com/owncloud/core/issues/2377#issuecomment-32179864

I reserve no rights to these changes whatsoever