fixed rc_gen and set perl path to /usr/bin