Removed commented-out line
Fixed variable name
Added support for projects branches
Removed unnecessary curly braces
Fixed regex variable name to match others