Add commands to get directory type (tag, branch, trunk) and version