Fix path.join arguments must be string with nodejs v0.10.0