Adding check for pinentry program