add restart thin task; change thin chdir