compatible path.join arguments for node 0.10+