Issue 521 public shares and disappearing favorites

In the fix for #492 it seems that `?format=version_info` is not available when the file has only the one version

Changed it to get the JSON for the folder and find the file's data inside. Not as pretty, but serviceable.

Fixes #521