improve jenkins env check

- [x] allow question marks at the end without breaking things
- [x] allow checking specific repos on all environments (sandbox, playground2, etc.)