Added conditional on paths[config/routes] to accommodate changes in Rails 4

* Added a conditional to test for Rails 4 and above when appending to paths
* Fixes #48