fix labeling problem with --dirs