More intelligent logging for createDirIfNotExists() and use mkdirSync because I'm stupid.