diff --git a/packages/linux.sh b/packages/linux.sh
index 83f5c6fe191e79217fd34b9eb9f553157336bb01..44770b6eef28dd8315d7ca9dd4f89bd3fc1b62a6 100755
--- a/packages/linux.sh
+++ b/packages/linux.sh
@@ -55,10 +55,10 @@ cp ../VERSION dist/pamhyr/
 cp ../AUTHORS dist/pamhyr/
 cp ../LICENSE dist/pamhyr/
 
-mkdir -p dist/pamhyr/MAGE/
-cp ../mage/mage dist/pamhyr/MAGE/
-cp ../mage/mage_extraire dist/pamhyr/MAGE/
-cp ../mage/mailleurPF dist/pamhyr/MAGE/
+mkdir -p dist/pamhyr/mage/
+cp ../mage/mage dist/pamhyr/mage/
+cp ../mage/mage_extraire dist/pamhyr/mage/
+cp ../mage/mailleurPF dist/pamhyr/mage/
 
 mkdir -p dist/pamhyr/tests_cases/
 mkdir -p dist/pamhyr/tests_cases/Saar
diff --git a/packages/windows.bat b/packages/windows.bat
index d8f6e2a5c54b1c20ee3205611616f95fbc678a79..16aba85c2721e92929d43dc5dcd2c76d32ec0e33 100644
--- a/packages/windows.bat
+++ b/packages/windows.bat
@@ -40,16 +40,15 @@ copy /y ..\AUTHORS dist\pamhyr\
 copy /y ..\LICENSE dist\pamhyr\
 
 rem MAGE
-mkdir dist\pamhyr\MAGE
-copy /y ..\mage\mage.exe dist\pamhyr\MAGE\
-copy /y ..\mage\mage_extraire.exe dist\pamhyr\MAGE\
-copy /y ..\mage\mailleurPF.exe dist\pamhyr\MAGE\
+mkdir dist\pamhyr\mage
+copy /y ..\mage\mage.exe dist\pamhyr\mage\
+copy /y ..\mage\mage_extraire.exe dist\pamhyr\mage\
+copy /y ..\mage\mailleurPF.exe dist\pamhyr\mage\
 
 rem Copy tests_cases
 mkdir dist\pamhyr\tests_cases
 mkdir dist\pamhyr\tests_cases\Saar
 copy /y ..\tests_cases\Saar\Saar.pamhyr dist\pamhyr\tests_cases\Saar\
 
-
 rem Make installer
 "C:\Program Files (x86)\NSIS\makensis.exe" pamhyr.nsi