Check for and create system directories.