binary check to reduce errors in different distros