Remove r_sign references
Apply some perl-related fixes