ALM-684 better handling of STDIN in import rake task