Returning configDir properly