Correct cache lookup in HTML head.

Forgot to correct filename parsing in the non-AMD head.

We don't have an integration test that actually tests fonts are being rendered - an oversight due to it being quite hard to test, but it is doable. Will try and add something.