bugfix in reading output from split command