Add function to get version control root directory