Fix incompatibilities with path.join in node v0.10