Change: Use "path_name" variable name consistently
Fix: Fixed in-place operation at the mime type initialization