determine platform from env vars in upload script