GRAILS-11163 fix persisting command line history to file