fixed rc_gen and set Perl path to /usr/bin