sdk: add support for installing extensions into the distribution folder
https://bugs.activestate.com/show_bug.cgi?id=96295

(integrated from trunk branch change cbd3252 by Todd Whiteman <toddw@activestate.com>)