diff --git a/src/configure b/src/configure
index 1170a7b967a917bb0c168323bec057b9e80d91e6..1029e30f84c4647b8a631cfee3e09772dd2fab2c 100755
--- a/src/configure
+++ b/src/configure
@@ -1,4 +1,4 @@
-#!/bin/ksh
+#!/bin/bash
 #MNH_LIC Copyright 1994-2014 CNRS, Meteo-France and Universite Paul Sabatier
 #MNH_LIC This is part of the Meso-NH software governed by the CeCILL-C licence
 #MNH_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt  
@@ -209,9 +209,7 @@ module rm grib_api
                 then
                 export MNHENV=${MNHENV:-"
 . /opt/modules/default/init/bash
-module rm grib_api
-module rm PrgEnv-cray
-module load PrgEnv-intel
+module switch PrgEnv-cray PrgEnv-intel
 "}
                 fi
                 fi