Ugh, line endings. I did most of this in notepad on my server, no proper IDE. If it's a big deal I can find a script to normalize all the endings.