Added better error reporting for agfs-keygen