Makes GWT.reportUncaughtException JVM compatible.

Change-Id: Ibbcc7a65a89ac1fd1e8988f57a57bbe356b46ca9
Fixes OutputFileSetOnDirectory for non-canonical files.

Bug: issue 8500
Change-Id: I991e306dd53ba909bc46f6372d45faf027b8385e
Merge remote-tracking branch 'upstream/master'