Fix SPARK-1413: Parquet messes up stdout and stdin when used in Spark REPL