Replaced this with environment variables for MEMCACHED_HOST and MEMCACHED_PORT. These are easily set in the Beanstalk configuration.