fix PLplot fork logic