Skip adding temporary package directories if they do not contain an appropriate package index file.