utils: fix the runtime crash when determining the total available ram on linux platforms
Fixes the list parsing for determining total memory available on Linux systems, it was first introduced in 139645b8 although this logic works on macOS it's incorrectly attempts to parse ram_size_query.stdout
on linux systems, which would be
total used free shared buff/cache available Mem: 33433698304 3135967232 24470913024 703111168 7019327488 30297731072 Swap: 1024454656 0 1024454656
The correct parsing should be re.split(r'\s+', ram_size_query.stdout.splitlines()[1])[1]
instead of re.split(r'\s+', ram_size_query.stdout.splitlines()[1])
Fix is tested on Ubuntu 20.04 and Debian 12 on amd64 architecture.
Fixes #464 (closed)