create log and text dirs if necessary