small bug fix in shell file processing script