1377 - Blacklist dependencies from SCM tracking

Git excludes dependencies from commit. 
Mercurial just shows a warning because it doesn't support excludes on commits. Just hgignore
Quote from @trev: "This function should have both repo and target as parameters. And a relative path is being determined by calling os.path.relpath(), not by doing some adventurous string replacements."