Make sure the hook gets run before sdist, add a fallback if jinja2 is not installed (as a backup plan in case timestamps from tar file get messed up and user doesn’t have jinja2), use importlib, and fixed package_data