Uploaded avatars and Gravatar not working with subfolder installation

Yes, I use latest version of Discourse (v1.5.0.beta8) and the issue occurs on it.

Just now I reproduced this issue on clean Discourse install following this guide and apply subfolder setup from this howto.

And Gravatar started to work and survive page reloads.
Does config for run: section actually correct, is it require 4 spaces before - exec?
But image uploads still failed to work…