Fix some errors with the option parser.
Add option to upload files using ssh with a keyfile.