Fixed issue #60953

* Altered phar_rename_archive() such that it will look for '.phar',
  then '.tar' before falling back on finding anything after the first
  '.' in a file extension