updated run scripts to work on MacOS as well