Fix deploy script to create tmp/restart.txt properly.