Modified Log Directory Routine

Added Directory Sanity check to prevent failures