Prefer specific type over */* in directoy middleware

This simply changes the content negotiation in the directory middleware to consider `*/*` last so a more specific type is picked.

Fixes #829