Mimetype handling in path resolution