Added environment check to rake tasks
Removed chef dependency from rails