Changes to add branch compatibility to  checkout class.

Also changed branch class to use modified ‘getPathtoFileVersion’
function.