Revert "Fix for ENOENT, no such file or directory error"

This reverts commit 00b1715bb11447c5a9b4b70740fb4e46144f626d.
Fix for ENOENT, no such file or directory error