Fixed .gitignore

`.gitignore` paths didn't have a leading `/`, which meant that they were matching in any subdirectory.

For example `composer.phar` will match any file with this name, wherever it is. `/composer.phar` will only match a file that is put at the root of the repository.

Please review the changes, I have also removed 2 duplicates.