Clear the ref number when restarting

Currently if you do a 'taste-tester restart', then next test/upload
will fail.
Merge pull request #17 from jaymzh/fixrestart

Clear the ref number when restarting