detectedOS not Exported Properly

The variable ‘detectedOS’ is not being exported properly, leading to
issues installing on CentOS/RedHat.