Fix bitness detection for target platform
Merge pull request #782 from taka-no-me:bitness_detection