Fixes #4694: RPM postinst fails on all systems due to missing directorie...

...s - but do mkdir them first