Set the executable flag on build_detect_platform