Fixed batch and shell script files to be relocatable on windows and osx/linux.