fix path.join for node > 0.10