Fix RAM amount detection on BSD and macOS. Tested by: @mastoras Comments by: @vladislavbelov
Differential Revision: https://code.wildfiregames.com/D4651