Fixed issue #2

path.resolve does not allow first argument to be anything other than string if it present.
 ````javascript
globOptions.cwd = globOptions.cwd ?  path.resolve(globOptions.cwd) : path.resolve();
```
would also work