fixes for running things in build dir and osx fix for zip issue