Fixed build permission for build_detect_platform

As per Issue #1