fix bug that happens when specified file does not exist
Merge pull request #2 from shibayu36/check-exist

fix bug that happens when specified file does not exist