Changed how the value of the ROOTDOT variable is set