Demos: Replace rooturl with environment.root

Corrects the second issue in #3827