Make mem_limit code backwards compatible with 0.6
Make mem_limit code backwards compatible with 0.6

quantopian/dockerspawner,jupyter/dockerspawner,minrk/dockerspawner,minrk/dockerspawner,quantopian/dockerspawner,jupyter/dockerspawner