Fix parsing of spec if pkgbuild is not defined in specfile.