Only redirect on command line for osx