enhance rpm -qa so the return code won't spit error if pkg doesn't exist