old sed syntax for support Ubuntu 8.04 / Hardy