Make install generator work with Rails Engines

With this fix you are able to run the install generator on Rails Engines. This fixes issue #43