Fix folder sent issue on osx refs #828