improved core/debug lint directory walk