fix error when dir is invalid value
Merge branch 'master' of github.com:1000ch/x-notification into gh-pages