Fix getMetadata path to data.dir/data/metadata_data (#515)