File names and line numbers don't appear on mono error page

https://github.com/aspnet/Diagnostics/issues/54

Fix is to handle the retrievel of file name with different separators on .net and mono.
Can remove the `!` and swap the conditions.