ENG-6175: Fix bug with setting minimum heapsize.
Caused an excpetion on osx, but probably is wrong on linux.