Typo fix

- fixed typo in directory name,
- suggestion to change file_exists to is_dir while actually checking for directory,
- recursive=true in mkdir() might actually be a good idea