Fix find-file-hook issue.

Hello. I fix issue #129 opened by my self. Also there are some minor improvements:

* fix project type detection for ruby projects
* fix test passing
* improve .gitignore
* add some useful scripts