Slightly better mkdir command
Moved mkdir rules out into config.mk so they can be used by client build systems