Moved BASE_DIR to .cfg file and added SCRIPT_DIR to .sh file