[ctioga2] automatically change to the directory containing a script file

Particularly useful now that we have a windows registry association

git-svn-id: svn+ssh://rubyforge.org/var/svn/ctioga2/trunk/ctioga2@492 86c91514-0d3b-42e0-aed1-4dfce116d947