Fix comparison in upload script for test builds