How can I programmatically set the default export path?
It looks like configuration for the features module is managed in the features.settings configuration object. This settings can be viewed and change via drush.

Viewing the features configuration directory:

drush cget features.settings


Setting the features configuration directory: 

drush cset features.settings export.folder "custom/features"