Added better localization implementation and removed the ROOT_PATH workaround