Fix output directory reference for osx