mkdir changes so log.txt directory is not made