Rework the filename format for signed files
There were reports that ".sig" makes problems on some machines, so switch to "-sig" instead. Also convert files from the old format to the new one to avoid duplicate markers.
Also handle multiple file extensions while at it.
This adds a dependency on "symfony/polyfill-php80" for the new str_ends_with/str_starts_with functions.