Don't raise errors for remote asset paths
Resolve real file path before matching

Handles index files, and simplifies a little.