fixing os specific scripts