fix determining Charm++ subdir