cd to script's directory so that paths always work
make resetting set `running` to false