Fix bithess detection for target platform