Properly handle stdin input for "partitions" plugin.