Remove OS-specific commands, change default for git option

I've been using this plugin for quite some time, and it works very well.

Some changes were necessary to make it work on different systems. I didn't send a pull request right away because I intended to test it for some time, but I end up forgetting about it :)