Bug #76

Fixed incompatibility with sed on OSX.