getBaseDirectory