Change "grep -m" to sed to enable POSIX