expand elixir constraint to include elixir 1.0.0-rc1
refactor logic from CLI commands into other modules/functions