Fix reset script and move it to dev/reset.sh