Refactor pkg_load/parse_descfile into a new backend file