added mkdir -p as a few cat commands fail