Made build_detect_platform file exectuable