fix getMimeType call, we always need to check the source path