fix typo that overwrites most of generated setenv/prepend-path statements

This fixes the problem reported in https://github.com/hpcugent/easybuild-easyblocks/issues/189