Create missing configured prefix (fixes #3431)