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.
While we're here: Defense in depth and use `int.TryParse()`? Use `-1` if it can't parse? This code is clearly super fragile to begin with.