Create parent dirs for useradd -m

Code from pwdutils 3.2.2 with slight adaptations.