Fix metadata dir path