Modified DGLAP Evolution for Fragmentation Functions in Nuclei and QGP