Fix issue with Windows line endings in build scripts