Fix excluding of files
Fix excluding of files

Previously exclusions didn't work unless they happened to
be the last line of the file. We now strip line ending
characters from the pattern.

StephenMcConnel/BuildUpdate,chrisvire/BuildUpdate