Fixed bug related to dirty workdir

- `describe_out[-1]` may contain a newline, therefore the `strip()` is necessary.
- `is` does identity comparison. You need `==` there.