fix wrong rights when creating rep_mode.conf;
Merge pull request #315 from Andor/master

fix wrong rights when creating rep_mode.conf;