removed duplicated definition for var.dir
set default for the vardir
added before setting so the init script on a debian server is installed before the service