check for local node_modules folder before failing trying to open it