use darwin-compatible sed in place of sed -r for swipe command