stdlib: Fix detection of already build package when rpmautospec