Fix download script to create directory if it doesn't exist.