Fix OSX compatibility in sed invocation

@mastrolinux