Partition.pm: avoid adding useless code in KS config file

Despite @piojo's comment in #33, I propose a fix for this issue. I am not sure it is making the code much more difficult to understand/follow.

Fixes #33