cf-dc-api.pl: remove File::Path dependency, cherry-picked