Add code for extracting Directories from Metadata

Initially used at VMIA to extract and update paths for Cubes, STPs and
Libraries.