Correct issue where readline bombs out if there's no existing history file.
Automatically install node modules if the directory doesn't exist.