Support multiple packages per directory (eg. X, X_test).