Corrected server script.

The server script would cd .. each time the binary crashed.
This would lead it to not finding the executable ever again.

Moving the cd to before the loop solves this problem.