BF: replace with ed so its cross platform, fixes permission problem gh-2...

fixes #266 before @yarikoptic reverts to perl