In fact the folder was already created if the app is running as a different user, but not if running as the current user, so it was just a question of moving one line out of an if block. Fixes gh-5986