improve bintype guessing in init_buildsystem