Fix completion script for non-GNU sed (OSX)