use run(`mkdir -p $dstpath`) instead of mkdir(dstpath)