Fix mem base path