branch names can have a ```/``` so this needs to search end to start