modified processBranches() to return the file path after refs/heads/ rather then everything after the last / character