Make version.sh smarter...

In regards to where it looks for/creates the VERSION & version-inc
files.
Besides being the right thing to do, this has the benefits of
unbreaking GIT_DIR support ;)