fixed bug with conditional git or svn path removal