Node v0.10 compatibility: Make sure strings are passed to path.join