fix: detect_os() and redhat_6 script