Implement fallback mechanism if "foundations.environment.getSystemApplicationDataDirectory" definition doesn't return a valid directory.

Closes KelSolaar/sIBL_GUI#192.