Separating BASEDIR from SAGE_HOME.

Supports install base.