Made build_detec_platform executable