Cleanup of file information API in package loaders