Fix path.join error with node 0.10