Fixed Linux name detection code