Add executable flag to build_detect_platform