examples: Don't ignore return value of chdir.

GCC 4.7.3 whinges about this.