fixing when dir doesn't exist, and copying over node_modules to dist