Create parent dirs for useradd -m

Code from pwdutils 3.2.2 with slight adaptations, under BSD-3-clause project license of course. Fixes the 'XXX - create missing parent directories.  --marekm' problem.