Backport Fireworks fixes from 7x to  5_3_X

- Workaround for crash using remote ssh via XQuartz 2.7.7
- fix crash when save configuration when file path is invalid