installer: add support for Rails 4

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>