add GetCurrentDirectory function