Why does this have it's own self executing function? I think you may be able to just change it to something like this:

```javascript
var copyCmd = {linux: 'xclip -selection CLIPBOARD', darwin: 'pbcopy'}[process.platform];
```