MODE-2319: Reset path when workspace or repository has been changed

This PR resets path to the root when changing workspace or repository