get debug and release scripts working on osx