Be more conservative creating /tmp/command_history.XXX files.