[#387] `_get_package_type` returns `dataset` by default, properly handle redirect based on package type