[support] Check if in taxonomy dir or node dir