Patches for check_hpjd port option [sf#3123438] [#1079]