centos6 uses gpg2
fix package name
refactor things for >2.7