Use sed's -i switch, as this script is run on Linux only anyway.