fixed the autodiscovery of the memory on linux