Fixed issue where check memory usage command would not work on MAC OSX