bak plugin: fix OS X compatability ("sed -r" -> "sed -E")