Fixed #381 Crash when generating a user notice containing a long path name.
Merge branch 'OSX_notification_fix'