Thanks for posting! How you are using the touch command and what exactly did you fix? It may help to benefit everyone if there's a change that can be made in the code to make the process work better.
I reviewed your shell script that invokes Fairmount and noticed logic that first checks for /tmp/batchRip-pid/currentItems.txt and if that fails, copies a file from /tmp/batchRip/currentItems.txt to the temp folder. In my case, that file didn't exist at all. So I simply issued a touch currentItems.txt command from within /tmp/batchRip/ directory.
I was asking when it gets created, because its possible there is a flaw in the logic that creates it from some machines (permissions?). I'll check out your action to see if I can issue a patch at some point...