Added environment variable for --settings

I need to use settings on Travis CI and have modified this script to accommodate.