Fix output of localization test messages

Always reset $output, otherwise exec will append to it...