Improvements to tab completion redicrection to file.(ROOT-6062).