replaced PoshGit's GitStatus with smaller functions