changed working directory and made memcache detect memory