sigh I really should learn to do these when I\'m awake..
I know how you feel, I just realised there was a typo in $scriptdir. Thanks again. :)