re #1 add check to see if log directory exists, if not try to make it

re #1 add check to see if log directory exists, if not try to make it