Uses git function to find .git directory.


![screen shot 2014-07-04 at 8 44 42 am](https://cloud.githubusercontent.com/assets/2591516/3483634/90dd412a-0392-11e4-85b0-dfc463c5b710.png)

This should be less error prone than our current code

![pear2](https://cloud.githubusercontent.com/assets/2591516/3483645/c6f692fc-0392-11e4-8d30-a224d85f2e4c.gif)