pass arguments as list instead of as string; also work when running from git checkout

Signed-off-by: Steven Armstrong <steven.armstrong@id.ethz.ch>
support gpg-agent with gpg2 >= 2.1

Signed-off-by: Steven Armstrong <steven.armstrong@id.ethz.ch>