Mark build_detect_platform as executable