Workaround for bug if APPDATA is not set in environment settings.