Update CPM_GetSourceDir to comply with latest CPM version.