Fix sorting pk3s in PAKSUMS

Loop didn't always run enough times to properly sort pk3s, now it goes until it's done.
Catch more bad shader syntax cases

Use to only ignore file in cases where both { and \0 were missing after shader name. Now ignore file when either are missing, such as "}\0".
Merge remote-tracking branch 'ioquake3/master'