Fix get package dir.