Fixed bug in mail-system detection.