fix script to also work on linux