Fix command line version of keygen

Calling keygen from the command line was broken, because cb() is filled
in by commander but it is not a function
Rename path.exists to fs.exists to remove deprecated warning