Fix setting lib_dir in ip*tables-{save,restore}
diff --git a/iptables-save.c b/iptables-save.c
index d825130..6c7267e 100644
--- a/iptables-save.c
+++ b/iptables-save.c
@@ -335,6 +335,10 @@
 	program_name = "iptables-save";
 	program_version = IPTABLES_VERSION;
 
+	lib_dir = getenv("IPTABLES_LIB_DIR");
+	if (!lib_dir)
+		lib_dir = IPT_LIB_DIR;
+
 #ifdef NO_SHARED_LIBS
 	init_extensions();
 #endif