Fixed check for rpm/deb build