avoid crash when directory doesn't exist
avoid crash when directory doesn't exist

SimenB/webpack,webpack/webpack,SimenB/webpack,SimenB/webpack,SimenB/webpack,webpack/webpack,webpack/webpack,webpack/webpack