makepkg: fix check for previously built packages with package splitting