Use "mkdir -p" instead of "test -d || mkdir" to create directories

"mkdir -p" is simpler to understand