fixed ifchanged -d formatting
added dirmail