Make repartition.sh script work