#417 [Anuj] modified the deploy script to set RAILS_ENV and GEM_HOME files in config with corresponding values. Modified the canvas_init script