Use the mkdir_p wrapper instead of os.makedirs

Resolves: rhbz#1104780
New release 0.7.22