fix environment errors with gemfile