Added a check if specified path open error.
Added a check if specified path open error.

DaSea/the_platinum_searcher,cmars/tools,syohex/the_platinum_searcher,drmohundro/the_platinum_searcher,monochromegane/the_platinum_searcher,cmars/tools,yuya-takeyama/the_platinum_searcher,aeruder/the_platinum_searcher,cmars/tools,thomasf/the_platinum_searcher,cmars/tools,tw4452852/the_platinum_searcher