fix executable detection