Fix path.join error with node 0.10

Fixes a common error with latest nodejs where the grunt task crashes due to warning
```
Warning: Arguments to path.join must be strings Use --force to continue.
```