Don't perform arithmetic on memory_limit if set to -1

-1 represents 'no limit':
http://php.net/manual/en/ini.core.php#ini.memory-limit
Fixes facebook/phpsh#49.