Added file npm-debug.log to the ignore list.
Two different variables are used to signal if peers and repositories are present.
Merge upstream/master