remove deprecated method util.pump() and use readableStream.pipe() instead
print success message at the right time
Fixed deprecated path.existsSync to fs.existsSync