changed codes to email admin &  flag sftp directory being missing instead of creating it