I got your script running with Pyrit and Cuda on my GTX260 but the resume function doesnt seem to be working. The placeholder file is created on first run with a single line of 10 0's but it is never changed. I let the program run for 30mins and then quit with ctrl+c and still nothing is written. When I run the .sh again it seems to start from scratch.
What are you doing different to get it to work?