Add global variable root_path representing the project root directory.
Sync before generating static files.