-## check this scripts directory; do we find this script there?
-#pushd "/" &>/dev/null # jump to root so relative paths have to fail.
-#if [ ! -f "$YETI_CORE_SCRIPTS_DIR/$THIS_TOOL_NAME" ]; then
-# echo "This script must be run using its full pathname. This enables the script to"
-# echo "locate the proper folders. Please try again with the full path, e.g.:"
-# echo " bash /home/fred/codeplex/$THIS_TOOL_NAME"
-# exit 1
-#fi
-#popd &>/dev/null
-
-# set up the yeti dir.
-pushd "$YETI_CORE_SCRIPTS_DIR/../.." &>/dev/null
-export YETI_DIR="$(pwd)"
+# set up the feisty_meow dir.
+pushd "$CORE_SCRIPTS_DIR/../.." &>/dev/null
+source "$CORE_SCRIPTS_DIR/functions.sh"
+
+#echo originating folder is $ORIGINATING_FOLDER
+export FEISTY_MEOW_DIR="$(/bin/pwd)"
+#echo feisty now is FEISTY_MEOW_DIR=$FEISTY_MEOW_DIR
+
+# repetitive bit stolen from variables. should make a file out of this somehow.
+IS_DOS=$(uname | grep -i ming)
+if [ -z "$IS_DOS" ]; then IS_DOS=$(uname | grep -i cygwin); fi
+# now if we're stuck in DOS, then fix the feisty meow variable name.
+if [ ! -z "$IS_DOS" ]; then
+ FEISTY_MEOW_DIR="$(cmd /c chdir | tr A-Z a-z | sed -e 's/\\/\//g')"
+echo feisty meow dos is: $FEISTY_MEOW_DIR
+ FEISTY_MEOW_DIR="$(dos_to_unix_path "$FEISTY_MEOW_DIR")"
+echo new feisty meow fixed dir is: $FEISTY_MEOW_DIR
+fi
+