Make URI matching less strict

I ran into problems with this when serving a `target/` subdirectory like `target/public`. Then the URI of the script tag was not exactly the same as what's in the `changed` set. (e.g. `public/css/garden.css` vs. `/css/garden.css`)

I don't see any downsides of this change, let me know if I oversaw something.