changed script to use the right python on the mac and added a check to see if there are any files in the directory being scanned to avoid worthless e-mails