continous append of operatingsystem to basic_tests.sh

use sed -i instead of >> to basic_tests when setting the
operatingsystem.

Signed-off-by: Loic Dachary <loic@dachary.org>