Fix install script issue with platform detection