updated platform.pl script