Fix metadata directory location