changed -d switch to --make-directories since it was complaining on windows