Fixed a problem in node 0.10+ where the test app dies on page visits due to options.root being null

path.join() dies if an argument isn't a string
Backwards compatible with node 0.8