Refactor require

* Refactor `require` to not use `File.dirname`
* Rakefile: default task to test, use gemspec to read version