Fix file versioning for shared files stable45, merged because of the positive comments here and in the master branch for the same fix