Missing georeference in L2A Sentinel-2 images

Hello everyone!

I am using the new version of Sen2Cor 2.2.1. in order to correct L1C TOA to BOA reflectances. As the problem with the DEM model is still getting missing georeferencing L2A datasets with no projection information, I was trying to use this script: https://github.com/OSGeo/gdal/blob/trunk/gdal/swig/python/samples/gdalcopyproj.py with L1C image as input and L2A as output.
With the older Sen2Cor version it works perfectly but now this script seems to not correct from L1C to L2A.
Does anybody know why or has another way to fix this problem? I would appreciate any clue.

Thanks in advance.
Isabel