Fix #2657

Should fix #2657

Testing would be noice~

Also getSourcePath($path) is scattered all over apps/files_sharing/lib/sharedstorage.php which will probably complain as well about missing functions, should I fix these too?

Released under MIT-License