Added -p to mkdir commands