Build: Improve rules for building .stdout files