fix reading the currently deployed branch

was broken because release directories don't have a .git directory anymore in capistrano 3