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
Please move the above `if len(...)` block into this block - no need to update the file if the `target` is in `file_content` already..