SERVER-10517: do not add command such as db\.auth() to shell history when there are spaces after 'dot'

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>