fix template_dir and API call to form processor inputs for CiviCRM 5.73.1 and Form Processor latest compliance