Changed the default CWD to the script base directory.