use dereferenced symlink for mime checks