Fix regexp in if-statements for operatingsystem