Add Nginx detection to Magento.rb