Support OSX's version of sed in the activate script

fixes #15