Fixed errors when scripts ran from other dirs

Java couldn’t compile or run the files due to not being able to find
them when the script was not run from the wargame directory. This new
line changes the directory to the one that the script is in before
compiling or running the files.