Catch OSError when mkdir -p