Resolve mime-type of local files