* Fix exec parameter parsing (#580)
Exec seems to be broken by ad6fbba806
This change basically copies what's in remotecommand.NewOptions, just
without the logging.
(cherry picked from commit 449eb3bb7d)
* Don't set cancel function to nil on error
Backported from ceb9b16c5c