Set environment var using different mechanisms for travis and local rake usage