Updated to work w/ linux

The problem in linux is the ```sed``` command syntax is slightly different.

In linux there is no space in: ```-i''```
Whereas in OSX, you have to have a space: ```-i ''```

Tested against ubuntu 13.04 and OSX 10.8.5