Update git gem and use simplecov instead of rcov
Refactor spec
Fix ] not escaped
Make raise error a bit more clear
Fix some issues in windows