cleaning up checking for ubuntu/debian and sending mail

I've thrown away checking for ubuntu/debian and only check for directory. Also I've thrown away sending mail because not everyone has sendmail or equivalent installed (e.g. me :) and it can raise privacy issues (not every one wants to share this kind of information).