Replace use of deprecated NGit APIs; adds support for --skip-worktree

Fix also fixes the following work item at CodePlex:

http://gitscc.codeplex.com/workitem/17821