[PATCH] kselftest: dt: Stop relying on dirname to improve performance