Added readline completion to shell mode