Fix improper handling of Windows EOL
Build check for existing source files