set BUILD_DIR to match basedir correctly within base.bat file, passed in test.dir variable to correctly locate script directory in built project
fix for ANT bug where original symlink directories are delete instead of just removing link
fixed issue with else if statements being skipped.
added check to make sure server has shutdown before continuing