Fixed sendEmail not getting a proper domain if run from command line. Fixed a notice in iDirectoryWritable if OS isn't available.