Fixed a bug on linux with bin detection