use mkdir -p which is more compatible