Test for {gpg,ssh} agent before running scripts related to them