versioning preview also for shared files

Make versions preview also work for shared files.

cc @PVince81 I hope you like it... :wink: