Remove redundant ini_path.dup to resolve a foodcritic warning

It seems redundant to duplicate the ini_path variable for passing
to the file resource, and this triggers a foodcritic warning about
resources in loops.

Remove the .dup in the hope this doesn't cause any problems.