Fixed bug where libmagic wouldnt properly detect mime types if directories weren't in the same folder as the file.
This only affected files with incorrect / unknown file extensions.