Fix calling batch.sh from script

This has ben driving me CRAZY!! I have no idea why, as I have just finally found out the
cause, but the little for loop that removes the "*~" backup files was causing all sorts of issues. that was what has been eating our lunch. I hope this solves some issues.