ecmascript: Make sure store.create() can mkdir the full path leading to the file

Fixes #2343
ecamscript: Fix typo in setting.createAction()

Fixes #2346