AppRoot/DocRoot in examples

This commit fixes bug #1864 without moving files around