Fix go script to also work on non mac os -- tested on ubuntu