Improve the sc2parse pid checking.