Move previously inline'd Perl code for the config-file target