fixed sed quotes bug, fixed sed backup syntax on FreeBSD