Fix for ENOENT, no such file or directory error