fix path for jar, make sed actually work on OSX