Creating the shared and config directories recursively.