minor refactor for checking where to place configuration files
fix typo (日文 -> 日本語)