fixed a bug with sed syntax for freebsd