Fix issue #8 (Authorized_keys).

Introduces POSIX compatibility for `sed` command usage. The change avoids the `-i` flag that has different syntax in BSD and thus was causing the issue #8.