Allow specifying memory size as env variable.