Fix notifywait for directories. Add formula.