Only create the directory on processor 0.
Write warning message to std::cout instead of std::cerr.