Fix missing use of variable.

Thanks: Marius Wigger
Add reset-client script.

Contributed-By: Marius Wigger