Parse ref names that have slashes

Signed-off-by: Stefan Buller <stefan.buller@gmail.com>