use the var for dir

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>