userData.writeFileSync() with "mkdir -p" behavior