meteor/meteor — pull request #852 by pstuart2 (2013-03-20 16:23:53+00:00)
Title: Fixed issue with node v0.10.0 Arguments to path.join must be strings

Running Ubuntu 12.04. NodeJs was updated to v0.10.0 and I started getting the following error.

```
path.js:360
throw new TypeError('Arguments to path.join must be strings');
^
TypeError: Arguments to path.join must be strings
at path.js:360:15
at Array.filter (native)
at exports.join (path.js:358:36)
at exports.send (/var/www/snakedraft/bundle/server/node_modules/connect/lib/middleware/static.js:129:20)
at pass (/var/www/snakedraft/bundle/server/node_modules/gzippo/lib/staticGzip.js:111:4)
at /var/www/snakedraft/bundle/server/node_modules/gzippo/lib/staticGzip.js:180:12
at Object.oncomplete (fs.js:93:15)
```

I only got this error on Meteor apps that I bundled and deployed on my own hardware. It isn't an issue when working in the development environment. It was caused by this change to NodeJs.

> http://nodejs.org/changelog.html
> 2013.03.01 Version 0.9.11
> path: Throw TypeError on non-string args to path.resolve/join (isaacs, Arianit Uka)

Now by passing `root: bundle_dir` to `gzippo.staticGzip` the root path is now defined instead of being null allowing my bundled app to run.