Ah, Solaris -- you'll find that the "patch" tool also behaves far outside of what you'll be used to if you're familiar with the GNU tools. Once again, an external and better-behaved patch tool is available.
If possible, I'd suggest enabling the mime_content_type function in PHP; running the external "file" command is something of a kludge. However, your work-around will be OK too. I'll consider moving it into config.inc.php; I believe it's the only hard-coded command line in the system at the moment.
Open Journal Systems Team
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada