Update basepath var