Fix issue where the size of command history is being reported wrong and so process.memory().free is reported wrong too