make build_detect_platform executable