but in my exported NWjs game file, the locations are the same, being NWjs.UserFolder & "savefile.json"
And you see the file actually created in that folder?
It's hard to tell what can be wrong. Add "Browser Log" actions to both events to see which one is triggered. Export the game with DevTools enabled, press F12 and check messages in the console log.