[cli] Fix `.gitignore` append during project link (#4965)
[cli] Fix `.gitignore` append during project link (#4965)

* [cli] fix .gitignore updating check

* Detect file EOL

* Semicolon

* Add trailing newline

Co-authored-by: Nathan Rajlich <d1854cae891ec7b29161ccaf79a24b00c274bdaa@n8.io>
zeit/now-cli,zeit/now-cli,zeit/now-cli,zeit/now-cli,zeit/now-cli,zeit/now-cli,zeit/now-cli