Added valid environment checking for DelayedJob and RabbitMQ