Improve runtime binary detection