This patch makes augtool use readline only when used in interactive mode. Otherwise, it uses getline to parse stdin so that augtool is silent in batch mode, which makes its output more easily parsable.