@WoodyZ. I really appreciate the time and effort you put into this. And you DID solve my problem, but i did have to make one tiny change to your script, which I think is worth keeping even if it doesn't work for everything.
I had to change line 47 from:
VMT922=`ls -l driver.c | grep "define compat_bool bool"` |
to
VMT922=`cat driver.c | grep "define compat_bool bool"` |
So you have been a HUGE help to me - I know it is a pretty thankless job but trust me, your efforts are appreciated by many members of the community, and this is not the first time you have solved a problem of mine - it is just the other problems you solved were posted by other people and I sponged off your answers!