Fix is_clean

`is_clean` returned false on some machines, since the output of git status is different. This has seemed to be the most stable revision I've found.