support -1 memory_limit setting in install.