screen2gti: detect platform from previous script