Fix bugs in path building of SpdrImport.