Fix typo of `git_available?`

This should fix issue #3.
Use Pathname.realpath for ruby 1.8 compat

File.realpath doesn't exist in 1.8 and was causing breaking. See Issue #4.