Fixed bootstrap generator for Rails engines.

The generator helpers for determining the ember_path and application_name cause an exception when run inside an engine. Inside the engine, `::Rails.configuration` is undefined. This check, however, is done before the engine check in these methods preventing the correct value from ever being returned.

This might be related to issue #310.