added variables and logic to support setting basedir once in tokudb.sh