[tests] Make app startup test work on Mac

- Handle bundled app path on Mac
- Move test writes to temporary, instead of source, directory
- Add Mac code for options.ini parent directory
- Add Mac options.ini file for plugin path test
- Clean up imports
Merge pull request #898 from dakcarto/test_appstartup_1

[tests] Make app startup test work on Mac