Replaced pure readline module with cmd module for interactive shell.