Properly define ROOT_PATH
Fix regression detecting expired sessions