problem is that ${version} contains the trailing slash (needed for all the other resources in the index file)...and this will not work in src mode, because there we don't have a version.

But I'll change it by introducing 2 version variables for the index.mako file, one with and one without slash. Should make the whole easier.