Correctly find main file when user has non-standard magicness

Adds a `\m` to the `search()` call in `GetMainTexFile()`, which otherwise breaks if the user sets `nomagic` or some other non-default magicness.
This would break LaTeX-Box realising that the current file is a main file in those circumstances.