cli: simplify mime node walk