Init the entry script; define the root folder global variable