modified examples so the examples directory can be set via an environment variable