Added the -p flag to mkdir for the download directory