Don't spam the user with many dialogs when pasting invalid styles

Just show a single error dialog regardless of the number of styles that
failed to parse.
Handle uncaught exceptions thrown from more places
Set the path to write crash recovery files to correctly
More crash log writing fixes
Ignore errors when canonicalizing paths for automation

It's only being done to make the error reporting prettier, so it failing
shouldn't block the loading of the file.
Fix loading automation script names from subtitle files