...
cp /nfs/farm/g/glast/u41/L1/runs/`echo $rn | cut -c1-3`/r0$rn/r0${rn}_${dn2}_v001_magic7Hp.txt $dn1$dn2/magic7_$dn2.txt
Note that the version number might be larger than v000 or v001, and there might be multiple versions for any given directory if the run had to rolled back, so you should check the run directory to see what the largest version number is for each delivery.
...