index.js : Fix non existing directory error