Reverted the logic to use env variable to mimic test -D option.
Added env variable option into the docs.