IsBinaryAccordingToGitAttribute() rewrited using "git check-attr". Closes #1585