Changes to script path handling

Path handling modified to support running the script from outside the
base folder.